From: Rafael Garcia-Suarez Date: Mon, 12 Mar 2007 21:58:19 +0000 (+0000) Subject: Better wording for (?|...) in perlre, from a suggestion by Ruud. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=693596a8ade915849b475fb0f9eac213ea06edd5;p=p5sagit%2Fp5-mst-13.2.git Better wording for (?|...) in perlre, from a suggestion by Ruud. p4raw-id: //depot/perl@30556 --- diff --git a/pod/perlre.pod b/pod/perlre.pod index 99cba68..66935d2 100644 --- a/pod/perlre.pod +++ b/pod/perlre.pod @@ -722,12 +722,10 @@ X<(?|)> X This is the "branch reset" pattern, which has the special property that the capture buffers are numbered from the same starting point -in each branch. It is available starting from perl 5.10. +in each alternation branch. It is available starting from perl 5.10. -Normally capture buffers in a pattern are numbered sequentially, -from left to right. Inside this construct that behaviour is -overridden so that the capture buffers are shared between all the -branches and take their values from the branch that matched. +Capture buffers are numbered from left to right, but inside this +construct the numbering is restarted for each branch. The numbering within each branch will be as normal, and any buffers following this construct will be numbered as though the construct