Hello


"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?

String.each does not sepaerate each character (as one would normally assume)
but seperates
lines (by default, using the record seperator). Maybe it would have better
been named
string.each_record.
You can specify the seperator: str.each( aString=$/ )
example:

a="canada"
a.each("a") do |i|
  p i
end

produces:

"ca"
"na"
"da"


Unfortunately you can not use string.each("") to seperate after each
character.


Juergen