From: Rafael Garcia-Suarez Date: Sun, 25 Nov 2007 15:43:11 +0000 (+0000) Subject: Document bug #47762, and mention %- X-Git-Tag: accepted/trunk/20130322.191538~14135 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=90a181105a13094bd64be49dfc7995251779b079;p=platform%2Fupstream%2Fperl.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 X X X @@ -837,9 +840,9 @@ only for fixed-width look-behind. X<< (?) >> X<(?'NAME')> X X 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 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 +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.