The match is only in one line, that's the purpose of the line
$_ .= <$fh> // '';
It completes a partial line.
In reply to Re^3: How to optimize a regex on a large file read line by line ?
by Anonymous Monk
in thread How to optimize a regex on a large file read line by line ?
by John FENDER
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |