Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Storing regexen in a DB and using them

by TomDLux (Vicar)
on Jan 27, 2014 at 15:32 UTC ( [id://1072238] : note . print w/replies, xml ) Need Help??


in reply to Storing regexen in a DB and using them

You mean something like ...

if ( $text =~ m{$regex} ) { .... }

As Occam said: Entia non sunt multiplicanda praeter necessitatem.