Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
$STRING =~ tr/a-mN-ZA-Mn-z0-9.&@=/H-Mn-z0-9.&@=a-mN-ZA-G/; $STRING =~ s/=/.3d/g; $STRING =~ s/&/.26/g; $STRING =~ s/@/.40/g; $STRING =~ s/\\/.5c/g; $STRING =~ s/\s/.20/g; $STRING =~ s/%/.25/g; $STRING =~ s/\//.2f/g; $STRING =~ s/#/.23/g; $STRING =~ s/"/.22/g; $STRING =~ s/'/.27/g; $STRING =~ s/\+/.2b/g; $STRING =~ s/\|/.7c/g; $STRING =~ s/\?/.3f/g; return $STRING;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Better Algorithm to Encode This?
by Sifmole (Chaplain) on Jun 12, 2001 at 22:31 UTC | |
by extremely (Priest) on Jun 13, 2001 at 05:54 UTC | |
|
Re: Better Algorithm to Encode This?
by tachyon (Chancellor) on Jun 12, 2001 at 23:02 UTC |