Instead of slurping, process one line at a time:
SKIP: while ( <> ) { next SKIP if !/^AAAAAA/; PRINT: while ( <> ) { last PRINT if /^BBBBBB/; print; } }
In reply to Re: matching several lines
by Narveson
in thread matching several lines
by control153
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |