From: James Edward Gray II Date: 2005-12-21T07:03:56+09:00 Subject: Re: iterate chars in a string On Dec 20, 2005, at 3:35 PM, Dirk Meijer wrote: > i've always used this: > > 0.upto(string.length-1) do |n| > p string[n,1] > end > > anything wrong with this? You mean besides the fact that it's not very Rubyish? Seriously, it seems fine, though I prefer each_byte() or scan(/./m). James Edward Gray II