depending on whether or not $flags =~ s/g// succeeds
Testing $flags =~ /g/; is simpler.
In reply to Re^3: Regexp substitution using variables
by Bod
in thread Regexp substitution using variables
by MikeTaylor
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |