Help for this page

Select Code to Download


  1. or download this
    my ($x,$y) = $foo =~ /(hello)(world)/
        or die "failed to match";
    ...
    if ( $foo =~ /(?<x>hello)(?<y>world)/ ) {
        print $+{x}, $+{y};
    }