my ($good_stuff) = $stuff =~ /^START$(.*?)^END$/ms;Don't forget that a better place for the semicolon after EOF is on the first "here" line:
my $stuff = <<EOF;
In reply to Re: Range This
by tadman
in thread Efficiently Extracting a Range of Lines (was: Range This)
by skazat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |