No such thing as a small change | |
PerlMonks |
Re: How to prevent metacharacter interpolationby jmcnamara (Monsignor) |
on Mar 14, 2001 at 15:36 UTC ( [id://64364]=note: print w/replies, xml ) | Need Help?? |
Use either the quotemeta function:
or use the \Q and \E escape characters: They do exactly the same thing; just one is a function and the other works inside regex patterns.
In Section
Seekers of Perl Wisdom
|
|