in reply to Performance of assambled regex

Use

while(<$fh_big_file>) { print if (/$regex/o .. /^END_OF_BLOCK/); }

to avoid recompilation of the regex.

perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'