From: Tom Sawyer Date: 2002-07-05T11:08:52+09:00 Subject: Re: is there a better string.each? a = "canada" a.each_byte do |i| puts i.chr end thought it was strange myself. personally i'd like it if String and Array where a little more in harmony. in c/c++ strings are arrays, arn't they? ~transami On Thu, 2002-07-04 at 19:52, Tyler Spivey wrote: > well, i have a bit of a problem: > a="canada" > a.each |i| > do something > end > and, it doesn't loop over all the characters. is this normal? if so, how do i loop over all the characters? > > -- ~transami "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -- Benjamin Franklin