I t clearly says on perlop that tr/// does not interpolate, since the search list is created at compile time. So instead, you would need to do
eval "tr/$var1/$var2/"; if( $@ ) { ## handle error }
In reply to Re: tr/// statement
by lestrrat
in thread tr/// statement
by supernewbie
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |