If you don't want to read the entire file into memory, how about
my @out; while(<F>) { push @out, $_ if /StartPattern/.../StopPattern/; }
In reply to Re: Slurp multiple lines to a variable
by Anonymous Monk
in thread Slurp multiple lines to a variable
by yoda54
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |