summaryrefslogtreecommitdiff
path: root/pod/perlre.pod
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-02-12 08:42:10 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-02-12 08:42:10 +0000
commit9c79236d7175b8f41c4e17950788a40bc979aebb (patch)
treef2669e5471ea3b3dc8b7bd5d672578c673ab03b7 /pod/perlre.pod
parent854822f1f42826a420001c15245dd4bcbf3fb071 (diff)
downloadperl-9c79236d7175b8f41c4e17950788a40bc979aebb.tar.gz
note how to find REG_INFTY limit
p4raw-id: //depot/perl@2885
Diffstat (limited to 'pod/perlre.pod')
-rw-r--r--pod/perlre.pod6
1 files changed, 5 insertions, 1 deletions
diff --git a/pod/perlre.pod b/pod/perlre.pod
index 451f527445..97ac7b7266 100644
--- a/pod/perlre.pod
+++ b/pod/perlre.pod
@@ -116,7 +116,11 @@ The following standard quantifiers are recognized:
(If a curly bracket occurs in any other context, it is treated
as a regular character.) The "*" modifier is equivalent to C<{0,}>, the "+"
modifier to C<{1,}>, and the "?" modifier to C<{0,1}>. n and m are limited
-to integral values less than 65536.
+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:
+
+ $_ **= $_ , / {$_} / for 2 .. 42;
By default, a quantified subpattern is "greedy", that is, it will match as
many times as possible (given a particular starting location) while still