> Can anybody help me on this? Is there a problem with "gets"? I changed 
> it to "STDIN.gets" but still have such problem.

Hmm, I think someone said the gateway to ruby-forum was broken - is that
still true?

My responses to this one are visible at
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/314220
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/314221

but not at
http://www.ruby-forum.com/topic/165048

Regards,

Brian.