summaryrefslogtreecommitdiff
path: root/pod/perlre.pod
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2007-03-12 21:58:19 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2007-03-12 21:58:19 +0000
commit693596a8ade915849b475fb0f9eac213ea06edd5 (patch)
treed7cf4c11b07f159c31d7793ce3c2c6783610cfb4 /pod/perlre.pod
parent7edb8f2b4268bb093066522fea77b0df6cc903bd (diff)
downloadperl-693596a8ade915849b475fb0f9eac213ea06edd5.tar.gz
Better wording for (?|...) in perlre, from a suggestion by Ruud.
p4raw-id: //depot/perl@30556
Diffstat (limited to 'pod/perlre.pod')
-rw-r--r--pod/perlre.pod8
1 files changed, 3 insertions, 5 deletions
diff --git a/pod/perlre.pod b/pod/perlre.pod
index 99cba6889e..66935d25f3 100644
--- a/pod/perlre.pod
+++ b/pod/perlre.pod
@@ -722,12 +722,10 @@ X<(?|)> X<Branch reset>
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