From: Dossy Date: 2002-07-05T11:04:31+09:00 Subject: Re: is there a better string.each? On 2002.07.05, 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? "canada".split(//).each { |i| p i } -- Dossy -- Dossy Shiobara mail: dossy@panoptic.com Panoptic Computer Network web: http://www.panoptic.com/ "He realized the fastest way to change is to laugh at your own folly -- then you can let go and quickly move on." (p. 70)