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