in reply to Strange behaviour of tr function in case the set1 is supplied by a variable

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,