Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: Precompiling substitution regex

by FreakyGreenLeaky (Sexton)
on Jun 18, 2011 at 09:46 UTC ( #910317=note: print w/ replies, xml ) Need Help??


in reply to Re: Precompiling substitution regex
in thread Precompiling substitution regex

Thanks. Does the second sample pre-compile the regexes?


Comment on Re^2: Precompiling substitution regex
Re^3: Precompiling substitution regex
by wind (Priest) on Jun 18, 2011 at 20:45 UTC

    I believe that we're mixing terminology here, as "pre-compile" isn't exactly what you're wanting to ask. Yes, the code is only compiled once and after that point it will not need to be recompiled.

    I've used this type of mechanism to program configurable filters. Letting a user edit a config file where they specify anonymous subs like that which are later eval'd and used in my larger package.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2014-12-27 12:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (177 votes), past polls