Help for this page

Select Code to Download


  1. or download this
    my %replacements = (...);
    my $regex = join '|',
    ...
        s/($regex)/$replacements{$1}/g;
        print $_;
    }