Problems? Is your data what you think it is? | |
PerlMonks |
Re: problems with tr///;by broquaint (Abbot) |
on Sep 25, 2001 at 22:38 UTC ( [id://114621]=note: print w/replies, xml ) | Need Help?? |
The reason it won't work is because by default tr, transliterates, or changes, character for character between the search list to the replacement list. However if you stick a 'd' on the end it will delete everything in the search list that doesn't have a corresponding replacement e.g
As someone is bound to say RTFM (man perlop). HTH broquaint
In Section
Seekers of Perl Wisdom
|
|