in reply to Is there any way to put regex modifiers into a variable?

Modifiers decide how the regex is compiled, so it must happen at compile time. *

Though putting it inside an eval string ( not block!) should work.

What did you try?

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Wikisyntax for the Monastery

*) I think I was wrong.

  • Comment on Re: Is there any way to put regex modifiers into a variable?