Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Problem using value of variable in a regular expression

by JediWizard (Deacon)
on Jul 30, 2010 at 14:30 UTC ( #852094=note: print w/replies, xml ) Need Help??


in reply to Problem using value of variable in a regular expression

You might also consider using quotemeta or the \Q and \E operators.

My other thought here, because you don't appear to need the power of a regular expression (you are just looking to see if one string contains another), index will give you that information with much less overhead.


They say that time changes things, but you actually have to change them yourself.

—Andy Warhol

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2022-01-25 15:37 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?