in reply to Re^2: Named Captures
in thread Named Captures

Scalar /g is an iterator (setting pos as a side effect).

Why should an iterator accumulate anything?

you may be interested in global regex returning a list of arrays?

Cheers Rolf