Help for this page

Select Code to Download


  1. or download this
    use strict ;
    use warnings ;
    ...
    my $str = "abcdef" ;
    $str =~ /(?<foo>[ab])*(?<bar>c)(?<foo>d)(?<bar>[ef]*)/ ;
    print Dumper(\%-) ;
    
  2. or download this
    $VAR1 = {
              'foo' => [
    ...
                         'ef'
                       ]
            };