in reply to How do pack a regular expression in a variable?

Perhaps you need to include your options within the regular expression. For example:

/(?i)foo/

is equivalent to

/foo/i

You can then leave the delimiters off and just put (?i)foo in your configuration file.

See "Cloistered Pattern Modifiers" on p186 of the Camel (3ed) or the perlre section on (?imsx-imsx) for more details.

--
<http://www.dave.org.uk>

"The first rule of Perl club is you don't talk about Perl club."