Help for this page

Select Code to Download


  1. or download this
    my $regex = '('
              . join('|', sort { length $b <=> length $a } keys %tr)
              . ')';
    $str =~ s=$regex=$tr{$1} // $1=ge;