From: Stephen White Date: 2001-08-24T11:04:21+09:00 Subject: [ruby-talk:20232] Re: ruby accessing variables it doesn't need to? On 24 Aug 2001 10:41:41 +0900, Joseph McDonald wrote: > def getschop! > $_.chop! if $_ = gets > $_ > end Having mail problems, so you may see this 3 times or not at all. I give up after this. :) Looks like you're heading towards: def getschomp gets ? $_.chomp : nil end