Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    my $file = "start<<<<part2>>>>middle<<<<part3>>>>end";
    my @parts = split /<<<<(.+?)>>>>/, $file;
    print Dumper \@parts;
    
  2. or download this
    $VAR1 = [
              'start',
    ...
              'part3',
              'end'
            ];