Front page | perl.perl5.porters |
Postings from July 2009
Re: version-0.77 and You
Thread Previous
|
Thread Next
From:
Ben Morrow
Date:
July 15, 2009 15:04
Subject:
Re: version-0.77 and You
Message ID:
20090715220410.GA95259@osiris.mauzo.dyndns.org
Quoth xdaveg@gmail.com (David Golden):
> On Wed, Jul 15, 2009 at 5:35 PM, Gisle Aas<gisle@activestate.com> wrote:
>
> > In the section about declaring versions in the traditional way (using
> > decimal $VERSION) I suggest it's presented in the string form:
> > our $VERSION = "1.02";
> > This is the recommended form as you don't get surprises when the version
> > number turns into "1.10".
>
> Good catch! That's a great suggestion. I debated getting into the
> alphas/eval stuff, but decided to leave it out of version.pm
> documentation. It'll be in my blog article I'm working on, though.
I've found that
use version; our $VERSION = "1.23_45";
works perfectly well under all circumstances, provided people only
compare version numbers using ->VERSION (which core, EUMM, MB and CPAN
all do). It also prevents version.pm from trying to insist all version
numbers must be in 3-decimal parts, and has the advantage of
stringifying correctly rather than as "1.2345".
Ben
Thread Previous
|
Thread Next