From: Peter Date: 2003-11-26T22:44:37+09:00 Subject: Re: turning a string into array of ASCII bytes > What is the shortest, most straightforward way (without temporary > variables, etc)? > > My best route is now "1234".split(//).collect{|c|c[0]} but I'm sure > there is a much better way. Also it's a bit slow. irb(main):003:0> "1234".unpack("c*") => [49, 50, 51, 52] Is that what you want? Peter