Perl Monk, Perl Meditation | |
PerlMonks |
Re: joining lines efficiency?by hbm (Hermit) |
on Jun 10, 2013 at 02:32 UTC ( [id://1037976]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|