http://www.perlmonks.org?node_id=563416


in reply to Re^4: An optimization of last resort: eliminate capturing from your regexps
in thread An optimization of last resort: eliminate capturing from your regexps

Perl makes a copy if there is capturing or PL_saw_ampersand is true. I think you said that perl makes that copy immediately on partial success or similar. I responded saying that I think perl waits until the match has succeeded to make the copy. I don't think what I just said contradicts tye at all especially as tye is also right.

⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊