laziness, impatience, and hubris | |
PerlMonks |
Re: Is there any way to put regex modifiers into a variable?by LanX (Saint) |
on Mar 11, 2018 at 18:56 UTC ( [id://1210677]=note: print w/replies, xml ) | Need Help?? |
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
*) I think I was wrong.
In Section
Seekers of Perl Wisdom
|
|