laziness, impatience, and hubris | |
PerlMonks |
Re: regexp =~by thelenm (Vicar) |
on Jul 29, 2002 at 17:50 UTC ( [id://186038]=note: print w/replies, xml ) | Need Help?? |
You should use \Q and \E, which put backslashes before special characters. The regex should look something like this:
Also, are you trying to perform a substitution on $theMatch or $line? You're actually performing a substitution on $_ (which is probably not what you want). -- Mike --
In Section
Seekers of Perl Wisdom
|
|