Help for this page

Select Code to Download


  1. or download this
    my $s = 'abcdefg';
    $s =~ m{abc(de)(fg)};
    my $output = do { sprintf "1=%s, 2=%s", $1, $2  };
    print $output;  # 1=de, 2=fg