Help for this page

Select Code to Download


  1. or download this
    my %replace_hash=(foo=>'bar',baz=>'fnord');
    my $regex=compile_regex(keys %replace_hash);
    s/\b($regex)\b/$replace_hash{$1}/g;