From: John Maclean Date: 2006-02-03T00:11:52+09:00 Subject: Chomping and stomping Chaps, Here's a short script to keep requesting for input... #!/usr/bin/ruby -w def chomper xx = gets.chomp! until $_ == "qq" puts "hit me with a squirell!" xx = gets.chomp! xx end end chomper # this works but surely there must be a way to incoporate a variable in there? #!/usr/bin/ruby -w def chomper xx = gets.chomp! until xx == "qq" puts "hit me with a squirell!" xx end end #this don't work. -- John Maclean MSc (DIC) 07739 171 531