On Fri, Jan 4, 2013 at 11:46 AM, Lars Thegler <l...@thegler.dk> wrote: > Yes, version.pm says "1.50" == "1.5". But both CPAN::Version and > Sort::Versions disagree. Who is to say which is correct? We could > easily find lots and lots of people on the Internet disagreeing > heartily on this matter :)
The only thing that matters is what perl thinks: use Sort::Versions 1.50; use Sort::Versions 1.5; As of Perl v5.10, it uses the same code internally as version.pm (modulo version.pm bug fixes over time), so they should be considered equivalent, even when $Sort::Versions::VERSION="1.5". (I.e. a string.) Unfortunately, we can't fix existing CPAN::Version on old Perls. We could fix it and have CPAN::Reporter bump it's CPAN.pm prerequisite. Or we could finally have CPAN::Reporter starting using version.pm. Given that 5.8 is now well out of the support window, it's tempting to finally use version.pm. David