|
|
| laziness, impatience, and hubris | |
| PerlMonks |
Re: Applying a RegEx in a variableby abstracts (Hermit) |
| on Aug 10, 2001 at 09:51 UTC ( [id://103816]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
Hello Try reading in perlop about the qr operator. Here is an example about how it can be used: Hope this helps,,, Aziz,,, Update: Yes, you got the right idea there using $re = eval "qr$regexp_val";Make sure you trust the source of your regexp before feeding it to eval.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||