Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    
    my @pieces = split /$pattern/, $str;
    print Dumper \@pieces;
    
  2. or download this
    hdb$ perl split4.pl
    $VAR1 = [
    ...
              ' split p',
              'ttern'
            ];