Sebastian, THANK YOU, THANK YOU, THANK YOU! The $stdin.gets works perfectly! I really appreciate all you experienced folks helping out this newbie! I'm going to hilight this stuff in PickAxe when I get done. PV Sebastian Hungerecker wrote: > Peter Vanderhaden wrote: >> If I use gets, the script just prints the prompt and seems to end. > > I see in your script that ARGV is not empty. That means Kernel#gets is > gonna read from the files in ARGV and not from stdin. To rectify that > use $stdin.gets instead. Or empty ARGV before you call gets. > > > HTH, > Sebastian -- Posted via http://www.ruby-forum.com/.