From: "Peña, Botp" Date: 2008-05-15T08:37:18+09:00 Subject: Re: Convert integer to array? From: Peña, Botp [mailto:botp@delmonte-phil.com] # scan+map since i don't need the formatting # (and the require ;-) # 001:0> "1234".scan(/\d/).map(&:to_i) # => [1, 2, 3, 4] arggh, 1.9 is getting better, 002:0> "1234".each_char.map(&:to_i) => [1, 2, 3, 4] very readable, imho kind regards -botp