From: Drew Date: 2007-01-01T05:40:05+09:00 Subject: Re: Newbie: It works, how can I make it better? Jay Bornhoft wrote: > > else > > puts "That is a not a valid choice. Good bye!" > > end > > Thank you all for your guidance... and now I have another question... > If instead of ending the program for an invalid choice... > > How do I loop back to the beginning of the program to let them make a > valid choice? > > > Thx, J > > -- > Posted via http://www.ruby-forum.com/. Seems to me the easiest way to go back would be to use just what you said - a loop. A while loop would probably suffice, perhaps something like the following: while (line = gets) != "quit" case line # set of where statements end