Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: regexp =~

by kvale (Monsignor)
on Jul 29, 2002 at 17:50 UTC ( [id://186040]=note: print w/replies, xml ) Need Help??


in reply to treating * as a normal character in a regex

To quote regexp metacharacters, use the  \Q ... \E quoting ops:
if($theMatch =~ /\Q$line\E/ )
-Mark

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://186040]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-04-23 15:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found