Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Module-CoreList CPAN distribution.

Report information
The Basics
Id: 32047
Status: resolved
Priority: 0/
Queue: Module-CoreList

People
Owner: Nobody in particular
Requestors: MJCARMAN [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 2.13
Fixed in: (no value)



Subject: Trailing zeros in version numbers confuse corelist
The corelist utility reports that it has no info on Perl 5.10.0, even though I can see the data in %version. The problem is that the trailing zeros in the '5.010000' key are being stripped so the exists() check in corelist is failing. Running C<corelist -v> reports that it has information on version "5.01" but attempting to access it with C<corelist -v 5.01> results in "Module::CoreList has no info on perl v5.010" It's probably necessary to manually quote the keys in %version so that they're treated as strings instead of numbers. This could break assumptions in other parts of the module, so it might be necessary to force all version strings into a canonical representation.
From: lidden [...] gmail.com
This patch seems to work. I could not think of a good comment though. --- corelist.bak 2008-02-29 01:27:44.000000000 +0100 +++ corelist 2008-02-29 01:28:55.000000000 +0100 @@ -95,7 +95,7 @@ exit 0; } - $Opts{v} = numify_version( $Opts{v} ); + $Opts{v} = numify_version( $Opts{v} ) + 0; if( !exists $Module::CoreList::version{$Opts{v}} ) { print "\nModule::CoreList has no info on perl v$Opts{v}\n\n"; exit 1;
From: lidden [...] gmail.com
Show quoted text
> + $Opts{v} = numify_version( $Opts{v} ) + 0;
Bah, it should of course have been fixed inside numify_version. :-(
This is resolved in 2.14.