From: Rafael Garcia-Suarez <rgarciasuarez@gmail.com>
Date: Sun, 25 Nov 2007 15:43:11 +0000 (+0000)
Subject: Document bug #47762, and mention %-
X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=90a181105a13094bd64be49dfc7995251779b079;p=p5sagit%2Fp5-mst-13.2.git

Document bug #47762, and mention %-

p4raw-id: //depot/perl@32484
---

diff --git a/pod/perlre.pod b/pod/perlre.pod
index 1e43434..3576364 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.