Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^7: Why eval $version?

by Haarg (Priest)
on Jul 09, 2020 at 18:28 UTC ( [id://11119104]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2024-04-19 23:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found