summaryrefslogtreecommitdiff
path: root/pod/perlglossary.pod
diff options
context:
space:
mode:
Diffstat (limited to 'pod/perlglossary.pod')
-rw-r--r--pod/perlglossary.pod11
1 files changed, 9 insertions, 2 deletions
diff --git a/pod/perlglossary.pod b/pod/perlglossary.pod
index b44fcd447f..858f24b12c 100644
--- a/pod/perlglossary.pod
+++ b/pod/perlglossary.pod
@@ -234,7 +234,8 @@ some of its high-level ideas.
=item backreference
A substring L<captured|/capturing> by a subpattern within
-unadorned parentheses in a L</regex>. Backslashed decimal numbers
+unadorned parentheses in a L</regex>, also referred to as a capture group.
+Backslashed decimal numbers
(C<\1>, C<\2>, etc.) later in the same pattern refer back to the
corresponding subpattern in the current match. Outside the pattern,
the numbered variables (C<$1>, C<$2>, etc.) continue to refer to these
@@ -458,10 +459,16 @@ handler when some event of interest transpires.
Reduced to a standard form to facilitate comparison.
+=item capture buffer, capture group
+
+These two terms are synonymous:
+a L<captured substring|/capturing> by a regex subpattern.
+
=item capturing
The use of parentheses around a L</subpattern> in a L</regular
-expression> to store the matched L</substring> as a L</backreference>.
+expression> to store the matched L</substring> as a L</backreference>
+or L</capture group>.
(Captured strings are also returned as a list in L</list context>.)
=item character