in reply to Re^2: Putting the stringified Regexp object into code
in thread Putting the stringified Regexp object into code
How are you embedding? This sounds like something you should be solving using modules if you need to share the result among multiple scripts. But as I said, the code should stand as is. I would point out that the qr in $code = "if (\$data =~ qr/$re/) { blah() }"; is unnecessary.
#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Putting the stringified Regexp object into code
by sedusedan (Monk) on Nov 06, 2012 at 19:16 UTC | |
by kennethk (Abbot) on Nov 06, 2012 at 20:56 UTC | |
by sedusedan (Monk) on Nov 07, 2012 at 00:14 UTC |
In Section
Seekers of Perl Wisdom