in reply to Re: To Kill a Meme: while(defined($line = <>))
in thread To Kill a Meme: while(defined($line = <>))
while(chomp($line = <FH>))
This is probably a more dangerous meme than while($line = <>) ever was—if your file is missing a terminal linefeed (or CRLF, as the case may be) you'll skip the last line. Not a common failing of text files, but all you need is one for it to bite you, hard.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: To Kill a Meme: while(defined($line = <>))
by Nkuvu (Priest) on Nov 03, 2003 at 12:46 UTC |