diff options
author | Lukas Mai <l.mai@web.de> | 2017-10-22 22:55:14 +0200 |
---|---|---|
committer | Lukas Mai <l.mai@web.de> | 2017-10-22 22:55:14 +0200 |
commit | 33727e0fa843e3c715b9a6cc7542fcdda31d6e3a (patch) | |
tree | 745dab49ef294a674c9a7456877edd09636cb861 /pod/perlvar.pod | |
parent | d1589979b3edf55f4440d041d4566c478a3860f6 (diff) | |
download | perl-33727e0fa843e3c715b9a6cc7542fcdda31d6e3a.tar.gz |
document semantics of %+ in perlvar in addition to perlre
Diffstat (limited to 'pod/perlvar.pod')
-rw-r--r-- | pod/perlvar.pod | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pod/perlvar.pod b/pod/perlvar.pod index 9ce9430b6b..257fdb6e1a 100644 --- a/pod/perlvar.pod +++ b/pod/perlvar.pod @@ -1121,6 +1121,9 @@ For example, C<$+{foo}> is equivalent to C<$1> after the following match: The keys of the C<%+> hash list only the names of buffers that have captured (and that are thus associated to defined values). +If multiple distinct capture groups have the same name, then +C<$+{NAME}> will refer to the leftmost defined group in the match. + The underlying behaviour of C<%+> is provided by the L<Tie::Hash::NamedCapture> module. |