Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Answer: How to prevent metacharacter interpolation

by lhoward (Vicar)
on Mar 14, 2001 at 18:24 UTC ( #64389=categorized answer: print w/replies, xml ) Need Help??

Q&A > strings > How to prevent metacharacter interpolation - Answer 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///.

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
[GotToBTru]: ah yes that infamous poison di-hydrogen oxide

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (7)
As of 2016-12-06 12:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (103 votes). Check out past polls.