- or download this
my @good_stuff = $stuff =~ /^START\n(.*?)^END$/gms;
# or alternatively with START and END around
my @good_stuff = $stuff =~ /(^START$.*?^END$)/gms;
- or download this
$stuff = << EOF;
blah
START
...
END
lots of lots of lines
EOF
- or download this
$stuff = << EOF;
blah
START
...
END
blah
EOF