永井@知能.九工大です.

chomp の動作がおかしいようです.(ruby-1.1b9_08)
============================================
ruby> x = "asdf\n"
"asdf\n"
ruby> x.chop
"asdf"
ruby> x.chomp
"asdf"
ruby> x.chop == "asdf"
true
ruby> x.chomp == "asdf"
false
ruby> x.chop == x.chomp
false
ruby> x.chomp + "\n" == "asdf\n"
true
============================================

-- 
                                         永井 秀利 (九工大 知能情報)
                                             nagai / ai.kyutech.ac.jp