summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorBrad Baxter <unknown>2007-05-31 08:04:55 -0700
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2007-06-01 09:14:24 +0000
commit527e91da3efcef88ca1e3a004b2ada277cd1d50c (patch)
tree64767ae9b033ff6d1deaeb7207ebe8c68cbbaea2 /pod
parent9983c4560c1aa5c28c332aa2c80d3dec1e245a7c (diff)
downloadperl-527e91da3efcef88ca1e3a004b2ada277cd1d50c.tar.gz
[perl #43094] Doc patch to perlre: modifiers => quantifiers
From: Brad Baxter (via RT) <perlbug-followup@perl.org> Message-ID: <rt-3.6.HEAD-1668-1180649095-1834.43094-75-0@perl.org> p4raw-id: //depot/perl@31325
Diffstat (limited to 'pod')
-rw-r--r--pod/perlre.pod8
1 files changed, 4 insertions, 4 deletions
diff --git a/pod/perlre.pod b/pod/perlre.pod
index a12349b6cb..75717293c2 100644
--- a/pod/perlre.pod
+++ b/pod/perlre.pod
@@ -145,8 +145,8 @@ X<metacharacter> X<quantifier> X<*> X<+> X<?> X<{n}> X<{n,}> X<{n,m}>
(If a curly bracket occurs in any other context, it is treated
as a regular character. In particular, the lower bound
-is not optional.) The "*" modifier is equivalent to C<{0,}>, the "+"
-modifier to C<{1,}>, and the "?" modifier to C<{0,1}>. n and m are limited
+is not optional.) The "*" quantifier is equivalent to C<{0,}>, the "+"
+quantifier to C<{1,}>, and the "?" quantifier to C<{0,1}>. n and m are limited
to integral values less than a preset limit defined when perl is built.
This is usually 32766 on the most common platforms. The actual limit can
be seen in the error message generated by code such as this:
@@ -1891,7 +1891,7 @@ loops using regular expressions, with something as innocuous as:
The C<o?> matches at the beginning of C<'foo'>, and since the position
in the string is not moved by the match, C<o?> would match again and again
-because of the C<*> modifier. Another common way to create a similar cycle
+because of the C<*> quantifier. Another common way to create a similar cycle
is with the looping modifier C<//g>:
@matches = ( 'foo' =~ m{ o? }xg );
@@ -1911,7 +1911,7 @@ may match zero-length substrings. Here's a simple example being:
Thus Perl allows such constructs, by I<forcefully breaking
the infinite loop>. The rules for this are different for lower-level
-loops given by the greedy modifiers C<*+{}>, and for higher-level
+loops given by the greedy quantifiers C<*+{}>, and for higher-level
ones like the C</g> modifier or split() operator.
The lower-level loops are I<interrupted> (that is, the loop is