- or download this
use strict;
use warnings;
...
2
43 43
END LIST
- or download this
perl -ni.bak -e 'print unless ( /^Header1$/ .. /^END LIST$/)' filenam
+e
- or download this
my $text = do { local $/; <FILE> };
if ($text =~ /^Header1.*?END LIST/m) {
....
}
- or download this
my $text = do { local $/; <FILE> };
$text =~ s/^Header1.*?END LIST\n?//msg