develooper Front page | perl.perl5.porters | Postings from January 2014

Re: about commit " Integrate the CPAN version of version_new"

Thread Previous | Thread Next
Father Chrysostomos
January 5, 2014 00:59
Re: about commit " Integrate the CPAN version of version_new"
Message ID:
Daniel Dragan wrote:
> I'm not sure that is a "No behaviour changes". Comments anyone?

Aha, so you have noticed a disparity between the two codebases that
I missed.  (This is precisely why I did this whole thing to
begin with, to try to avoid this type of disparity in future.)

The core use of 0 (where the CPAN release had undef) goes back to

commit be5574c0ea0db2b49042f8ad61e8d863b126a906
Author: David Golden <>
Date:   Thu Jan 21 12:18:11 2010 -0500

    initialize undefined version objects with zero, not 'undef'

I have just found this thread:;

See, in particular:;

It makes no difference whether the string here is "undef" or "0",
since the version-parsing routines produce equivalent version objects
either way.

So I will leave it up to John Peacock to decide whether the CPAN ver-
sion should change (and then core will pick it up with the next
synch).  I think the "0" would be marginally more efficient.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About