Hello likbez,
The transliteration operator tr/SEARCHLIST/REPLACEMENTLIST/ does not interpolate its SEARCHLIST, so in your first example the search list is simply the literal characters $, s, t, r, 2. See Quote and Quote like Operators.
Hope that helps,
| Athanasius <°(((>< contra mundum | Iustus alius egestas vitae, eros Piratica, |
In reply to Re: Strange behaviour of tr function in case the set1 is supplied by a variable
by Athanasius
in thread Strange behaviour of tr function in case the set1 is supplied by a variable
by likbez
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |