in reply to Re^2: Perl 5.34 is released (bad code example)
in thread Perl 5.34 is released

what does it mean if the empty string can be repeated n times?

It means "We kept the heading short, feel free to split hairs." The single line below that heading reads: An empty lower bound is now accepted for regular expression quantifiers, like {,3}.

But I'm rather expecting Perl not reading the curlies as metas.

Correct. A open curly was interpreted literally in regular expressions in a lot of places in old Perl versions. Since Perl 5.26 some of these uses were forbidden, and Perl 5.28 made some of these uses non-fatal again. Relevant reading:

so {,3} is the same like {0,3} or {1,3} ?

Same as {0,3}.

  • Comment on Re^3: Perl 5.34 is released (bad code example)

Replies are listed 'Best First'.
Re^4: Perl 5.34 is released (bad code example)
by LanX (Saint) on May 23, 2021 at 14:34 UTC
    Discussing "very unfortunate" and "bad" code examples is hardly "hair splitting".

    We both are experienced enough to handle this, but many others won't.

    ...documentation can include sloppy wording, that's hard to avoid.

    But sloppy code is not a good idea, since there is no doubt of interpretation.

    I'll file a perlbug.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery

        I was just informed that the patch was accepted. :)

        > Thanks for the report. Your wording is now incorporated into perl5340delta

        Cheers Rolf
        (addicted to the Perl Programming Language :)
        Wikisyntax for the Monastery