Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^3: RFC: Version::Easy

by tobyink (Canon)
on Jul 14, 2020 at 19:53 UTC ( [id://11119319]=note: print w/replies, xml ) Need Help??


in reply to Re^2: RFC: Version::Easy
in thread RFC: Version::Easy

There's already a built-in version syntax from Perl 5.14 onwards.

package Foo::Bar 1.23; ...; # or package Foo::Bar 1.23 { ...; }

And the PAUSE indexer, etc supports it. It's only a problem if you need to support Perl versions earlier than 5.14.

Replies are listed 'Best First'.
Re^4: RFC: Version::Easy
by LanX (Saint) on Jul 16, 2020 at 18:39 UTC
    > There's already a built-in version syntax from Perl 5.14 onwards.

    package Foo::Bar 1.23;

    from package

    > If VERSION is provided, package sets the $VERSION variable in the given namespace to a version object with the VERSION provided.

    (emphasize added)

    so apparently I've just implemented the same semantic for older versions

    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://11119319]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-03-29 15:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found