Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (11)
As of 2017-01-23 16:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (194 votes). Check out past polls.