develooper Front page | perl.perl5.porters | Postings from April 2006

Underscores in version numbers?

From:
Jan Dubois
Date:
April 4, 2006 12:46
Subject:
Underscores in version numbers?
Message ID:
059301c65820$51861fa0$2217a8c0@candy
On Tue, 04 Apr 2006, Rafael Garcia-Suarez wrote:
> 
> Change 27712 by rgs@stencil on 2006/04/04 11:42:05


[...] 

> -our $VERSION = '1.18';
> +our $VERSION = '1.18_01';

Is there a good reason to put these underscores into the version numbers?
It doesn't matter that much for blead, but in released version I find it
annoying that they generate warnings.  E.g. with 5.8.8:

  perl -we "use Data::Dumper 2;"
  Argument "2.121_08" isn't numeric in subroutine entry at -e line 1.

I think only unreleased/beta versions should use these kind of version
numbers for modules.  Can't we just leave out the underscore and use

  our $VERSION = 1.1801;

instead, if we want to differentiate the core version from the CPAN version?

Cheers,
-Jan





nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About