Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Answer: How to prevent metacharacter interpolation

( #64389=categorized answer: print w/ replies, xml ) Need Help??

Q&A > strings > How to prevent metacharacter interpolation contributed by lhoward

If you're just looking to search or search/replace a string and you don't need any special regular expression (regex) capabilities, you could use index or index+substr instead of m// or s///.

Comment on Answer: How to prevent metacharacter interpolation
Select or Download Code
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2015-07-05 07:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls