From: Robert Klemme Date: 2008-09-05T19:47:10+09:00 Subject: Re: how to read digits in a number 2008/9/5 Josef 'Jupp' Schugt : > On Fri, 05 Sep 2008 12:04:46 +0200, Pepe Sanchez wrote: > >> I would like to read all the characters in a string. For me, glasses work extremely well. ;-) > For example >> "123456" I need to read every digit separately. > > For strings use > > "123456".split(//) Or "12345".scan /./m do |s| ... end Cheers robert -- use.inject do |as, often| as.you_can - without end