We don't bite newbies here... much | |
PerlMonks |
Re: Problem using value of variable in a regular expressionby JediWizard (Deacon) |
on Jul 30, 2010 at 14:30 UTC ( [id://852094]=note: print w/replies, xml ) | Need Help?? |
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
In Section
Seekers of Perl Wisdom
|
|