The stupid question is the question not asked | |
PerlMonks |
Re^3: Regexp substitution using variablesby LanX (Saint) |
on Nov 26, 2020 at 00:40 UTC ( [id://11124244]=note: print w/replies, xml ) | Need Help?? |
> with-g and without-g cases separately, depending on whether or not $flags =~ s/g// succeeds. That's reasonable, because /g is not a simple modifier changing the match-rules, it turns the "replace" into a different "replace_all" command with very different behavior.
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|