The idiom meant is:
eval "\$var =~ tr/$pattern1/$pattern2/;";The double quotes allow the patterns to be interpolated before the expression is compiled.
After Compline,
Zaxo
In reply to Re: How to eval a tr/// (was: Transliteration!!!)
by Zaxo
in thread How to eval a tr/// (was: Transliteration!!!)
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |