in reply to To Kill a Meme: while(defined($line = <>))
One minor nit: You missed a way to get a false-but-defined value. It's possible if you've set $/=\1, that is, if you're reading a byte at a time.
BTW, while you're right that it's rarely important to have it there, it certianly doesn't hurt, and there's a school of thought that it's almost always better to be explicit then implicit.
(In case you were confused, this is an agreement, with caveats.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: To Kill a Meme: while(defined($line = <>))
by PodMaster (Abbot) on Nov 03, 2003 at 07:37 UTC | |
by sauoq (Abbot) on Nov 03, 2003 at 07:53 UTC | |
by theorbtwo (Prior) on Nov 03, 2003 at 07:52 UTC | |
|
Re: Re: To Kill a Meme: while(defined($line = <>))
by sauoq (Abbot) on Nov 03, 2003 at 07:02 UTC |