From: Gurusamy Sarathy Date: Fri, 12 Feb 1999 08:42:10 +0000 (+0000) Subject: note how to find REG_INFTY limit X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9c79236d7175b8f41c4e17950788a40bc979aebb;p=p5sagit%2Fp5-mst-13.2.git note how to find REG_INFTY limit p4raw-id: //depot/perl@2885 --- diff --git a/pod/perlre.pod b/pod/perlre.pod index 451f527..97ac7b7 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