On 25.06.2009 20:30, Mikem94590 wrote:

> Thank you for you quick reply.  Your advice worked, and seems like
> something that can be used for other purposes as well.

Another hint: if you want to see what's going on often using "p" instead 
of "puts" helps because it will escape special chatercters.  If applied 
to variable "name" after "gets" you would have seen the newline at the end:

$ ruby19 -e 'n=gets;p n'
hello
"hello\n"

Kind regards

	robert

-- 
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/