From: Sebastian Hungerecker Date: 2007-11-24T02:22:50+09:00 Subject: Re: chomp - works in irb, not in program Peter Vanderhaden wrote: > Douglas: > I forgot to mention that the puts command outputs the prompt to the > screen, but the program never pauses to give the user a chance to enter > anything for an answer. Are you by any chance running the script with any command line arguments? That would cause Kernel#gets to read from disk instead of from stdin which might explain the behaviour you're experiencing. HTH, Sebastian -- NP: In Flames - Black & White Jabber: sepp2k@jabber.org ICQ: 205544826