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

Re: module version numbers

by DStaal (Chaplain)
on Jul 15, 2009 at 12:50 UTC ( #780293=note: print w/replies, xml ) Need Help??

in reply to module version numbers

version looks nice... If you are targeting Perl 5.9 or greater. 5.8 is still very common in the wild, which may be a reason many module authors avoid it. (It's why I do.) Of course, you can list version as a dependency, but that adds another step to the install and complicates things for the user.

I personally use the numeric X.YYZZ format, meaning version X.YY.ZZ, as the most compatible format at the moment. (And I let ModuleMaker set it up in a BEGIN block, as that's easy.)

Really, it comes down to: Pick whatever you feel comfortable with that doesn't cause problems for your users. v-strings cause problems. version is a minor annoyance for anything earlier than 5.9. Numeric seems to cause me the least amount of headaches, but that's me.

Replies are listed 'Best First'.
Re^2: module version numbers
by ig (Vicar) on Jul 15, 2009 at 13:47 UTC

    Does X.YYZZ translate to version X.YY.ZZ or X.YYZ.Z00? I thought the translation from numeric to extended version strings took three digits after the decimal point for the second and third version numbers (midor and minor I think I have seen them called).

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://780293]
[erix]: nice cover with the spitting image of George (and a great solo by Prince at the end )
[Discipulus]: good night monks! i feel fresh as the turkey in the hoven but i need to sleep
[planetscape]: gobble, gobble, Discipulus!
[erix]: Discipulus: buonanotte! :)
[stonecolddevin]: man we need a new guitar legend
[stonecolddevin]: Clapton has issues playing nowadays
[stonecolddevin]: Prince is gone
[stonecolddevin]: Van Halen is still around but I haven't heard any of their new stuff
[erix]: oh, 41M views -- everyone has seen it already then :)
[erix]: Alvin Lee dead too -- we're stuck with Karl, I'm afraid :)

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (10)
As of 2017-06-22 21:18 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (531 votes). Check out past polls.