From: Brian Candler Date: 2009-11-21T02:12:57+09:00 Subject: Re: select only taking alternating values? if gets.chomp! == "!quit" then cleanupAndExit else puts gets.chomp! end Note how gets is called twice. Incidentally, a plain gets is *not* the same as STDIN.gets, but is more like ARGF.gets. It makes a difference when someone puts some arguments on the command line. Use STDIN.gets to be safe. -- Posted via http://www.ruby-forum.com/.