From: David Kastrup Date: 2007-03-18T03:55:15+09:00 Subject: Re: Strange Ruby Issue in SciTE - Won't Parse First Input Michael Boutros writes: > I have done all of that, but I have one problem. I am using SciTE, and > am using the F5 thing to try out my code. My one problem is that when I > run the program, the correct text comes on, but I have to press enter > twice for the while loop to start. No, you have to press enter once for the while loop to start, and another time _in_ the while loop: > bye_response = 0 > years = (1930..1950).to_a > > puts "'Ey sonny! Long time no chat with your old nonna, eh? How ya > been!?" > STDOUT.flush > > response = gets.chomp Here you have demanded the first enter. > while bye_response != 3 > response = gets.chomp And here you have demanded the second one, before even doing anything with the previous response. I suggest that you remove the first of those lines asking for input: it does not actually get used anywhere. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum