> differently for matching than for substitution.
I'd say s///g always acts like m//g in list context (all in one go) and has no special single step after pos mode in scalar context.
See perlretut
Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery
In reply to Re: while-loop regex substitution with 'g' option
by LanX
in thread while-loop regex substitution with 'g' option
by ibm1620
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |