Another option is the flip-flop operator: Read the file line-by-line, and don't print if between an opening expression and closing expression.
The general idea is print unless /<expr1>/ .. /<expr2>/, but here the slash and star need to be escaped.
while(<$fh>){ print unless m{/[*]} .. m{[*]/}; }
In reply to Re: joining lines efficiency?
by hbm
in thread joining lines efficiency?
by perlperlperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |