From: Christian Neukirchen Date: 2005-02-22T00:48:42+09:00 Subject: Re: destructive! operations Brian Schr�der writes: > On Tue, 22 Feb 2005 00:14:41 +0900, Christian Neukirchen >> Then, stuff like that would be possible >> >> while line = gets.ignore_if_nil.chomp >> ... >> end >> >> Maybe just a crazy idea... :-) > > What would the ignore_if_nil call in your example do? Wouldn't the > above be equivalent to > > while line = gets.chomp > ... > end gets returns nil on EOF. > Regards, > > Brian > -- Christian Neukirchen http://chneukirchen.org