Subject: | Query CPAN for new versions of Module::Install during "make dist" |
By warning authors about outdated Module::Install versions on their
system during the "make dist" phase, one can reduce the probability of
finding distributions with outdated and broken Module::Install versions
inside.
If a recent enough CPAN.pm is availlable, this might be as easy as doing
this:
use CPAN;
my $module = CPAN::Shell->expand('Module', 'Module::Install');
my $cpan_ver = $module->cpan_version;
if ($installed_version ne $cpan_ver) {
warn "There is an old version of Module::Install on your system.
Please consider upgrading...";
}
Also, please don't use that warning text ;)
Thanks,
Steffen