Keep It Simple, Stupid | |
PerlMonks |
Re: Strange behaviour of tr function in case the set1 is supplied by a variableby likbez (Sexton) |
on Nov 16, 2017 at 03:10 UTC ( [id://1203547]=note: print w/replies, xml ) | Need Help?? |
With eval statement works correctly. So it looks like $ is treated by tr as a regular symbol and no warning are issued.
that will produce: With eval: diff1=3 </code>
In Section
Seekers of Perl Wisdom
|
|