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