in reply to Storing regexen in a DB and using them
No special action is required, the following works as expected as long as $regex contains a valid regex:
if ($input =~ /$regex/) { ... } [download]
Time flies when you don't know what you're doing