$_ .= <$fh> // ''; # finish partial line
That's a good trick!
(As long as a line doesn't become bigger than memory, but that's hardly the case here.)
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
In reply to Re^4: How to optimize a regex on a large file read line by line ?
by LanX
in thread How to optimize a regex on a large file read line by line ?
by John FENDER
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |