in reply to Re^2: To Kill a Meme: while(defined($line = <>))
in thread To Kill a Meme: while(defined($line = <>))
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re^2: To Kill a Meme: while(defined($line = <>))
by Anonymous Monk on Nov 03, 2003 at 07:49 UTC | |
|
Re: Re: Re^2: To Kill a Meme: while(defined($line = <>))
by sauoq (Abbot) on Nov 03, 2003 at 05:55 UTC |