Skip Menu |

This queue is for tickets about the Sort-Versions CPAN distribution.

Report information
The Basics
Id: 128545
Status: new
Priority: 0/
Queue: Sort-Versions

People
Owner: Nobody in particular
Requestors: leonerd-cpan [...] leonerd.org.uk
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.62
Fixed in: (no value)



Subject: Confused by leading zeroes
Although it doesn't outright state so, the docs imply that in groups of pure digits, that leading zeroes ought to be ignored. The docs state: If digit groups are being compared on both sides, a numeric comparison is used So we ought to expect that "2.0.0" and "2.000.0", say, compare equal. But yet: $ perl -MSort::Versions -E'say "OK" if versioncmp("2.0.0", "2.0.0") == 0' OK $ perl -MSort::Versions -E'say "OK" if versioncmp("2.0.0", "2.000.0") == 0' (no output) $ perlmodversion Sort::Versions 1.62 -- Paul Evans