Re: version.pm and developer version numbers

David Golden <[email protected]>
Newsgroups gmane.comp.lang.perl.quality-assurance
Message-ID <CAOeq1c-g5R5pVXTB75-QAe6pwJxOGD97k1PQV+QTyYb+EOiYQw@mail.gmail.com>
It's crazy.  But it's been that way since Perl 5.10.0 in 2007.  So now
we're stuck with it.

The C<$VERSION = eval $VERSION> idiom avoids some issues with it by
losing the underscore at runtime, but that might not be enough for
things that parse your distribution tarball version number and try to
do comparisons.

(see http://www.dagolden.com/index.php/369/version-numbers-should-be-boring/)

-- David

On Fri, Jul 27, 2012 at 3:48 PM, Jeffrey Thalhammer
<[email protected]> wrote:
> I just discovered that version.pm always treats version numbers with an underscore as less than the equivalent version number without the underscore. So "6.63_02" is less than "6.6302".  Is it it just me, or does that seem crazy?  Dealing with $VERSION numbers in Perl is hard enough as it is.  This doesn't help.
>
> -Jeff
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.