From: Arup Rakshit Date: 2013-01-12T20:06:09+09:00 Subject: Re: Array methods creating confusions as per their functionalities Calvin B. wrote in post #1092020: > Hello, > I agree with your point, as I am a newbie so not that much confident on the methods how are they defined in the docs.I tried to understand a bit by test code,nothing in my HEAD! :( here is a small code for Pack() method of Array class instance. irb(main):001:0> n = [ 65, 66, 67 ] => [65, 66, 67] irb(main):002:0> n.pack("CCC") => "ABC" irb(main):003:0> n.pack("ccc") => "ABC" irb(main):004:0> n.pack("sss") => "A\x00B\x00C\x00" irb(main):005:0> n.pack("SSS") => "A\x00B\x00C\x00" irb(main):006:0> n.pack("qqq") => "A\x00\x00\x00\x00\x00\x00\x00B\x00\x00\x00\x00\x00\x00\x00C\x00\x00\x00\x00\ x00\x00\x00" irb(main):007:0> n.pack("QQQ") => "A\x00\x00\x00\x00\x00\x00\x00B\x00\x00\x00\x00\x00\x00\x00C\x00\x00\x00\x00\ x00\x00\x00" irb(main):008:0> Now here you can see that I used directives as `c` and `C`;`q` and `Q` . But looking at the console output i didn't get any differences. But I know there should be,so need your help to pin point me,as you are experienced! I always obey your guide,directions n all. -- Posted via http://www.ruby-forum.com/.