Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^3: Scurbbing a string

by BrowserUk (Patriarch)
on Aug 28, 2007 at 02:33 UTC ( [id://635470]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Scurbbing a string
in thread Scrubbing a string

It just struck me that you can avoid having to use the quotemeta function by using metacharacter form:

eval "\$ex =~ tr[\Q$ctl\E][]cd;";

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2024-04-19 10:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found