Bug#890362: Add @MATCH
積丹尼 Dan Jacobson
jidanni at jidanni.org
Tue Feb 13 18:58:08 UTC 2018
Package: perl-doc
Version: 5.26.1-4
Severity: wishlist
File: /usr/share/man/man1/perlvar.1.gz
I see good progress is being made in finally exposing these.
@{^CAPTURE}
An array which exposes the contents of the capture buffers, if any, of
the last successful pattern match, not counting patterns
matched in nested blocks that have been exited already.
But I found one that is still missing.
There is
$MATCH
$& The string matched by the last successful pattern match.
But what still needs to be added is a
@MATCH
@& The array matched by the last successful m/.../g pattern match.
OR, please add to the explanation of $&, that unlike m/.../, m/.../g's
array can always be obtained by my @F = m/.../g and thus isn't even
stored in memory, even though plain m/.../g in void context does not
trigger any warnings...
More information about the Perl-maintainers
mailing list