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 :)
I think version numbers with trailing zeroes suck for this exact reason. Just fix the prerequisite list, and get on with life. /Lars On Fri, Jan 4, 2013 at 5:29 PM, David Golden <x...@xdg.me> wrote: > On Fri, Jan 4, 2013 at 8:28 AM, Gabor Szabo <ga...@szabgab.com> wrote: >> I am not sure what does that mean. Is the version number comparison in >> CPAN::Reporter >> broken or should Module-Packaged declare Sort::Versions 1.5 as prerequisite? > > CPAN::Reporter uses CPAN::Version for version comparisions. (I wish > we could use version.pm, but we are trying to be backwards compatible > and not force older perls to have version.pm installed.) > > So whatever it's doing for version comparison in CPAN::Version::vcmp() > is to blame. When I see 1.50 != 1.5, I immediately start thinking > about floating point issues. Was this a 64 bit machine by any chance? > > David > > -- > David Golden <x...@xdg.me> > Take back your inbox! → http://www.bunchmail.com/ > Twitter/IRC: @xdg