Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Simple Matchingby gwadej (Chaplain) |
on Sep 28, 2009 at 04:28 UTC ( [id://797822]=note: print w/replies, xml ) | Need Help?? |
From perlop, Because the transliteration table is built at compile time, neither the SEARCHLIST nor the REPLACEMENTLIST are subjected to double quote interpolation. That means that if you want to use variables, you must use an eval() This obviously applies to tr/$_//.
G. Wade
In Section
Seekers of Perl Wisdom
|
|