Perl: the Markov chain saw | |
PerlMonks |
Re: tr/// vs s/// The question.by lemming (Priest) |
on Dec 31, 2002 at 20:58 UTC ( [id://223460]=note: print w/replies, xml ) | Need Help?? |
tr/[^A-Za-z0-9_ ]//d is the same as tr/A-Za-z0-9_ ]^[//d tr doesn't pay attention to the brackets and treats them as characters. You'll have better luck with tr/A-Za-z0-9_ //cd
In Section
Seekers of Perl Wisdom
|
|