Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: tr/// vs s/// The question.

by lemming (Priest)
on Dec 31, 2002 at 20:58 UTC ( #223460=note: print w/ replies, xml ) Need Help??

in reply to tr/// vs s/// The question.

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
the c stands for complement, d for delete. See perldoc perlops for more info

Comment on Re: tr/// vs s/// The question.
Select or Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://223460]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2014-07-26 15:54 GMT
Find Nodes?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:

    Results (178 votes), past polls