in reply to Re^3: Why eval $version?
in thread Why eval $version?

Yes, the underscore is still there. Why is that a problem?

Replies are listed 'Best First'.
Re^5: Why eval $version?
by Haarg (Priest) on Jul 09, 2020 at 18:22 UTC

    Often, users will take the version from Module->VERSION or $Module::VERSION and compare it to a number. This will issue a warning:

    package Module;
    our $VERSION = "1.1_2";
    my $new = Module->VERSION > 1.1;
    

    Also, for modules that want to work properly on perls older than 5.10, leaving an underscore in the $VERSION will result in a use call throwing a warning.

Re^5: Why eval $version?
by LanX (Saint) on Jul 09, 2020 at 16:19 UTC
    > Yes, the underscore is still there. Why is that a problem?

    because a dev version will show on CPAN as a new release?

    update

    I dunno

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