![]() |
|
"be consistent" | |
PerlMonks |
Re^3: creating qr from existing regexby bart (Canon) |
on Feb 12, 2018 at 11:47 UTC ( #1208980=note: print w/replies, xml ) | Need Help?? |
Yes, "(?:$flags:$pattern)" is wrong, it should have been "(?$flags:$pattern)". That is: the flags between the leading "(?" and ":" of the standard non-capturing grouping parens, i.e. "(?:$pattern)".
You can always try to print out a qr/foo/i, to see what perl does natively.
In Section
Seekers of Perl Wisdom
|
|