Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

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

by haj (Vicar)
on May 23, 2021 at 14:26 UTC ( [id://11132928]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11132928]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-04-25 10:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found