Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Re: Easy one for my fellow Monks

by grep (Monsignor)
on Dec 20, 2001 at 07:29 UTC ( [id://133393]=note: print w/replies, xml ) Need Help??


in reply to Re: Easy one for my fellow Monks
in thread Easy one for my fellow Monks

If you are doing several metachars you can also use \Q to quote your metachars.

$var =~ s#\Q(#,(#;
or
$var =~ s#\Q([]\E#/meta/;


/Q will quote all the metachars it sees in a regex until \E.

Log In?
Username:
Password:

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

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

    No recent polls found