Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

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

by bart (Canon)
on Mar 12, 2018 at 08:17 UTC ( [id://1210700] : note . print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        print $line if ($line =~ /(?$opts:$regex)/);