Use
while(<$fh_big_file>) { print if (/$regex/o .. /^END_OF_BLOCK/); }
to avoid recompilation of the regex.
In reply to Re: Performance of assambled regex
by shmem
in thread Performance of assambled regex
by Foodeywo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |