Update:
You missed the real point. This has nothing to do with whether Perl "automatically" checks undef. The real point here is that, under a normal situation without set $/, you don't get a real empty string or a "0" back, so those posibilities are eliminated, and this leaves undef the only condition that may evaluate $line to false, thus the use of "defined" is not neccessary here.
A placehold for original:
I realized the confusion I had in the original reply, and removed it. Then I saw sauoq had already replied.
It would be okay if there was no reply, but it is immoral to make his reply funny ;-), especailly when he is right. So I leave this comment here to confirm what he said is true, and that was my confusion in my original post.
In reply to Re: Re^2: To Kill a Meme: while(defined($line = <>))
by pg
in thread To Kill a Meme: while(defined($line = <>))
by sauoq
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |