On 2002.07.05, Tyler Spivey <tspivey8 / telus.net> 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)