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

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??

My viewpoint is that version 'numbers' are not really numbers at all; they are strings that may or may not look like numbers. This is not a computer science statement but a philosophical one. A version number is more like a model name. Does 'Windows 7' sort higher than both 'Windows 98' and 'Windows 2000'? (I know, this is a cheap shot and yes, I know better. Does 'NT 3.5' sort higher than '3.11'?)

It's an error to think of any version number format as pure, correct, or a real number. To be precise, the set of version numbers (for any project) do not constitute a field or even a ring. We should all be grateful that Perl Hackers aren't trying to release modules with versions like 'Cougar' and 'SX-2010'.

That said, it's good to play nice with others sometimes. This is one of those times. I don't endorse novel version numbering schemes. Use an accepted format. Understand how various formats are incremented.

Everyone agrees that mixing version number formats is Bad News. I say, once you pick a format, that's it -- you're stuck with that format forever, for the life of the module. Comparing 0.2.0 to 0.12.0 is funky enough without trying to compare either to 0.010002 let alone... well.

Docs for version say clearly: "You are strongly urged to set 0.77 as a minimum in your code..."

Combining this with Conway's recommendations yields:

use version 0.77; our $VERSION = qv('1.2.3');
Note: Contents may change.

In reply to Re: Can't use three part version number for CPAN modules by Xiong
in thread Can't use three part version number for CPAN modules by arc_of_descent

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?

    What's my password?
    Create A New User
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others taking refuge in the Monastery: (9)
    As of 2021-01-20 13:50 GMT
    Find Nodes?
      Voting Booth?