http://qs321.pair.com?node_id=11119104


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

The generally recommended practice now is to use $VERSION =~ tr/_//d; rather than $VERSION = eval $VERSION. This removes the underscores, but leaves trailing zeros intact. This also only applies if you are using numeric versions (rather than three part versions like v1.2.3) and are using underscores to denote developer releases. Using -TRIAL releases is another option that many prefer rather than using underscores.

Replies are listed 'Best First'.
Re^8: Why eval $version?
by syphilis (Archbishop) on Jul 10, 2020 at 00:42 UTC
    The generally recommended practice now is to use $VERSION =~ tr/_//d;

    A much better idea, IMO.
    And, if I ever release another devel version of a module, that's what I'll use.

    Cheers,
    Rob

    PS
    I haven't been releasing devel versions for a while now.
    Apparently, not all smokers test devel releases, and it was not uncommon for me to have the devel version pass everywhere, only to fail on some other smoker as soon as it became a stable release.
    I couldn't see the point in that. Instead, I choose to do broad based testing locally and then do a stable release.