I'm a little afraid about where you're going to use this, but.... ;-)
The key is to substitute each one at a time, like this:
HTHwhile (my ($left, $right) = each %iso8859) { $str =~ s/$left/$right/g; }
In reply to Re: substitute using a hash
by VSarkiss
in thread substitute using a hash
by vinfizz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |