From: Douglas Greenshields Date: 2007-11-24T02:40:37+09:00 Subject: Re: chomp - works in irb, not in program Yes, as you imply, it's an issue with gets, not with chomp. The method you posted looks pretty textbook - if gets can work, then chomp will work. For some reason it looks like gets is not pausing the script application and just returning nil. -- Posted via http://www.ruby-forum.com/.