Jeremy Hinegardner
10/11/2007 5:29:00 PM
On Fri, Oct 12, 2007 at 01:42:15AM +0900, Liang He wrote:
> I want to pack an array such as [1,2,3,4]
> to "1234", instead of \001\002\003\004, how to do that?
% irb
>> x = [1,2,3,4]
=> [1, 2, 3, 4]
>> x.join('')
=> "1234"
>>
enjoy,
-jeremy
--
========================================================================
Jeremy Hinegardner jeremy@hinegardner.org