New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doc patch to perlre: modifiers => quantifiers #8918
Comments
From bmb@Mail.Libs.UGA.EDUThis is a bug report for perl from bmb@mail.libs.uga.edu, Following is a doc patch to perlre. There are a few places where Inline Patch--- perlre.pod.orig Fri May 25 20:32:10 2007
+++ perlre.pod Fri May 25 20:47:55 2007
@@ -122,8 +122,8 @@
(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:
@@ -1103,7 +1103,7 @@
The C<o?> can match 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 );
@@ -1123,7 +1123,7 @@
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
---
Site configuration information for perl v5.8.6: Configured by root at Thu Jan 1 0:00:00 UTC 1970. Summary of my perl5 (revision 5 version 8 subversion 6) configuration: Locally applied patches: @INC for perl v5.8.6: Environment for perl v5.8.6: |
From @demerphqOn 6/1/07, via RT Brad Baxter <perlbug-followup@perl.org> wrote:
these days its //pmsixogce, but otherwise i concur, this patch should yves -- |
The RT System itself - Status changed from 'new' to 'open' |
From @rgsOn 01/06/07, via RT Brad Baxter <perlbug-followup@perl.org> wrote:
Thanks, applied. |
@rgs - Status changed from 'open' to 'resolved' |
From bmb@Mail.Libs.UGA.EDUOn 5/31/07, demerphq <demerphq@gmail.com> wrote:
mnemonic: sexpig.com (No affiliation.) I don't know where I got z, must have meant x. -- |
Migrated from rt.perl.org#43094 (status was 'resolved')
Searchable as RT43094$
The text was updated successfully, but these errors were encountered: