Subject: | one-line fix for `use 5.010' |
It appears that %Module::CoreList::version has perl 5.10 listed as 5.01
rather than 5.010. This patch just enforces the six-digit decimal perl
version for versions greater than or equal to 5.006.
Subject: | djt-module-install.diff |
Index: lib/Module/Install/Admin/ScanDeps.pm
===================================================================
--- lib/Module/Install/Admin/ScanDeps.pm (revision 15456)
+++ lib/Module/Install/Admin/ScanDeps.pm (working copy)
@@ -18,6 +18,8 @@
perl_version('5.005');
END_MESSAGE
$perl_version =~ s{^(\d+)\.(\d+)\.(\d+)}{$1 + $2/1_000 + $3/1_000_000}e;
+ # make this more robust against situations like 5.01/5.010
+ $perl_version = sprintf('%0.6f', $perl_version) if $perl_version >= 5.006;
require Module::ScanDeps;
require Module::CoreList;