From: Michael Boutros Date: 2007-03-18T03:46:44+09:00 Subject: Re: Strange Ruby Issue in SciTE - Won't Parse First Input Sorry! I didn't post the updated code: 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 while bye_response != 3 response = gets.chomp if response == "BYE" if bye_response == 2 puts "FINE! LEAVE YOUR OLD NONNA!" else puts "HUH!? WHAT WAS THAT!?" end bye_response += 1 elsif response == response.upcase puts "NO, NOT SINCE " + years[rand(years.max - years.min)].to_s + "!" bye_response = 0 else puts "HUH?! SPEAK UP, SONNY!" bye_response = 0 end STDOUT.flush end -- Posted via http://www.ruby-forum.com/.