From: Robert Klemme Date: 2008-05-12T18:15:02+09:00 Subject: Re: Convert integer to array? On 12.05.2008 10:36, Nadim Kobeissi wrote: > Let's say I have: > x=1234 > How can I convert that to the follow array: > x=[1, 2, 3, 4] > > Any help would be greatly appreciated. x.scan /\d/ robert