|
|
| more useful options | |
| PerlMonks |
Re: Read in a regex without having to use string eval?by ikegami (Pope) |
| on Nov 23, 2011 at 01:13 UTC ( #939571=note: print w/ replies, xml ) | Need Help?? |
|
is not a regex pattern. It's a Perl operator, it's Perl code. You need eval EXPR or similar to execute Perl code. Now, if you actually had a regexp pattern, say
there wouldn't be need for eval EXPR or similar. or
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||