Help for this page

Select Code to Download


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