vinfizz has asked for the wisdom of the Perl Monks concerning the following question:
So how do I take a string and substitute characters from the key to the value? I want to do something like: s/keys(%iso8859)/values(%iso8859)/g; But, of course, that doesn't work. How can I do this?%iso8859 = ( "\xA0" => ' ', "\xA1" => '¡', "\xA2" => '¢', "\xA3" => '£', "\xA4" => '¤', "\xA5" => '¥', "\xA6" => '¦', ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: substitute using a hash
by broquaint (Abbot) on May 07, 2002 at 17:31 UTC | |
by vinfizz (Initiate) on May 07, 2002 at 17:38 UTC | |
|
Re: substitute using a hash
by VSarkiss (Monsignor) on May 07, 2002 at 17:34 UTC | |
|
Re: substitute using a hash
by RMGir (Prior) on May 07, 2002 at 17:44 UTC | |
|
Re: substitute using a hash
by emilford (Friar) on May 07, 2002 at 17:30 UTC | |
by emilford (Friar) on May 07, 2002 at 17:45 UTC | |
|
Re: substitute using a hash
by hopes (Friar) on May 07, 2002 at 18:42 UTC | |
|
Re: substitute using a hash
by mephit (Scribe) on May 07, 2002 at 21:03 UTC | |
|
Re: substitute using a hash
by indapa (Monk) on May 07, 2002 at 17:35 UTC |