Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Re: Easy one for my fellow Monks

by grep (Monsignor)
on Dec 20, 2001 at 07:29 UTC ( #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? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2022-01-25 17:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (67 votes). Check out past polls.

    Notices?