in reply to Strange behaviour of tr function in case the set1 is supplied by a variable
that will produce:$statement='$diff1=$str1'."=~tr/$str2//;"; eval($statement); print "With eval: diff1=$diff1\n";
With eval: diff1=3 </code>
- Comment on Re: Strange behaviour of tr function in case the set1 is supplied by a variable
- Download Code