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.
In reply to Re: Re: To Kill a Meme: while(defined($line = <>))
by ChemBoy
in thread To Kill a Meme: while(defined($line = <>))
by sauoq
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |