Help for this page

Select Code to Download


  1. or download this
    my $foo = qr/foo/g;     # hypothetical, won't work
    my $bar = qr/bar(\d+)/;
    ...
        s/$bar$foo/quz$1/;       # replaces first or all matches?
        # ... etc. ...
    }