Subject: | Module::module_is_supplied_with_perl_core() broken for perl 5.10 |
Date: | Sat, 22 Nov 2008 23:29:24 -0800 |
To: | bug-CPANPLUS [...] rt.cpan.org |
From: | "Justin Davis" <jrcd83 [...] gmail.com> |
Hello,
For CPANPLUS 0.84 in the CPANPLUS/Module.pm file, line 451 there is a
tiny problem.
In my perl version 5.10, Module::CoreList's version key for the hash
has a different number of trailing zero than $] aka $PERL_VERSION.
module_is_supplied_with_perl_core will always fail.
A simple patch is below:
--- CPANPLUS/Module.pm 2008-11-22 22:43:10.000000000 -0800
+++ CPANPLUS.patched/Module.pm 2008-11-22 22:44:10.000000000 -0800
@@ -448,7 +448,7 @@ L<Module::ThirdParty> for more details.
### check Module::CoreList to see if it's a core package
require Module::CoreList;
- my $core = $Module::CoreList::version{ $ver }->{ $self->module };
+ my $core = $Module::CoreList::version{ 0+$ver }->{ $self->module };
return $core;
}
I have not tested if this is a problem with any other perl version.
-juster