From: James Edward Gray II Date: 2005-02-21T02:16:47+09:00 Subject: Re: destructive! operations On Feb 20, 2005, at 10:23 AM, Caio Tiago Oliveira wrote: > Bad example: > > while ( line = gets.chomp ) > # work with line > end gets() returns a String or nil. nil does not support chomp(). When the chomp() is inside the while loop, this isn't an issue. James Edward Gray II