From: Jacob Fugal Date: 2006-02-03T04:41:58+09:00 Subject: Re: Chomping and stomping On 2/2/06, William James wrote: > def chomper > puts "Hit me!" while gets and $_.chomp! != "qq" > $_ if $_ > end This will always loop until EOF and then return nil. $_.chomp! (as opposed to $_.chomp) returns nil, and nil != "qq". Jacob Fugal PS. And let's not golf with this please...