From: Sebastian Hungerecker Date: 2007-11-24T01:36:04+09:00 Subject: Re: chomp - works in irb, not in program Peter Vanderhaden wrote: > When I try to use chomp to get user input You can't get user input with chomp. The only thing you get from chomp is a version of the string you called it on with trailing character removed. > private method `chomp' called for nil:NilClass (NoMethodError) Yes, there is no chomp method for nil. You need to call chomp on a String. If you thought that you were calling it on a String, you were thinking wrong. You should look into that. -- NP: Anathema - Balance Jabber: sepp2k@jabber.org ICQ: 205544826