> 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
- RFC 58 (v1) C<chomp()> changes. Perl6 RFC Librarian
- Re: RFC 58 (v1) C<chomp()> changes. Bart Lateur
- Re: RFC 58 (v1) C<chomp()> changes. Ted Ashton
- Re: RFC 58 (v1) C<chomp()> changes. Segher Boessenkool
- Re: RFC 58 (v1) C<chomp()> chan... Ted Ashton
- Re: RFC 58 (v1) C<chomp()>... Larry Wall
- Re: RFC 58 (v1) C<chomp()... Larry Wall
- Re: RFC 58 (v1) C<chomp()... Dan Sugalski
- Re: RFC 58 (v1) C<cho... Michael Mathews
- Re: RFC 58 (v1) C<cho... Dan Sugalski
- Re: RFC 58 (v1) C<cho... Michael Mathews
- Re: RFC 58 (v1) C<cho... Uri Guttman
- Re: RFC 58 (v1) C<cho... Ted Ashton
- Re: RFC 58 (v1) C<cho... Uri Guttman