in reply to Re^3: How to optimize a regex on a large file read line by line ?
in thread How to optimize a regex on a large file read line by line ?

Ahh! You are combining read with readline ...

 $_ .= <$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!