> I guess that's not yet clear to me.  After all, as I had pointed out to me,
> 
> while(<FILE>) 
> 
> means
> 
> while (defined($_ = <FILE>))
> 
> not 
> 
> while ($_ = <FILE>)
> 
> even if the chomp() is handed an empty line, it will return a defined value.
> Only at the point at which <FILE> returns undef will the while cease.

The magic defined($_ = <FILE>) only happens if <FILE> is the only thing
inside while().

In this case, it's not (there's a chomp() inside as well), so the magic
doesn't apply.


Segher Boessenkool
East Site

Reply via email to