diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2007-11-25 15:43:11 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2007-11-25 15:43:11 +0000 |
commit | 90a181105a13094bd64be49dfc7995251779b079 (patch) | |
tree | a8eff999f21daecdfdc37616aad3ca6319b2962d | |
parent | dbc3b750f29ded1f9f16580f35ba1eb835f7f581 (diff) | |
download | perl-90a181105a13094bd64be49dfc7995251779b079.tar.gz |
Document bug #47762, and mention %-
p4raw-id: //depot/perl@32484
-rw-r--r-- | pod/perlre.pod | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/pod/perlre.pod b/pod/perlre.pod index 1e4343431d..3576364abf 100644 --- a/pod/perlre.pod +++ b/pod/perlre.pod @@ -761,6 +761,9 @@ which buffer the captured content will be stored. / ( a ) (?| x ( y ) z | (p (q) r) | (t) u (v) ) ( z ) /x # 1 2 2 3 2 3 4 +Note: as of Perl 5.10.0, branch resets interfere with the contents of +the C<%+> hash, that holds named captures. Consider using C<%-> instead. + =item Look-Around Assertions X<look-around assertion> X<lookaround assertion> X<look-around> X<lookaround> @@ -837,9 +840,9 @@ only for fixed-width look-behind. X<< (?<NAME>) >> X<(?'NAME')> X<named capture> X<capture> A named capture buffer. Identical in every respect to normal capturing -parentheses C<()> but for the additional fact that C<%+> may be used after -a successful match to refer to a named buffer. See C<perlvar> for more -details on the C<%+> hash. +parentheses C<()> but for the additional fact that C<%+> or C<%-> may be +used after a successful match to refer to a named buffer. See C<perlvar> +for more details on the C<%+> and C<%-> hashes. If multiple distinct capture buffers have the same name then the $+{NAME} will refer to the leftmost defined buffer in the match. |