One possibility worth considering when you have a complex mapping sequence that doesn't lend itself to simple ranges, is to use bracketing delimiters and spread the construct over two lines:
$s = join'', 'a'..'z';; $s =~ tr[abcdefghijklmnopqrstuvwxyz] [96537214058751230498763202];; print $s;; 96537214058751230498763202
Has the advantages of avoiding overly long lines whilst making the mapping very clear.
In reply to Re^5: Translating letters
by BrowserUk
in thread Translating letters
by DaveMonk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |