Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Re: Test regex compile

by flyingmoose (Priest)
on May 13, 2004 at 19:28 UTC ( [id://353189] : note . print w/replies, xml ) Need Help??


in reply to Re: Test regex compile
in thread Test regex compile

That doesn't work if the regex is passed in as a parameter, say if you are doing something screwy like loading it from a database. The way to do that is probably to check at startup, or otherwise write another program, to run eval-block type tests on each of the many regexes that can be imported.