-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
A user pointed out to me that the error message produced by MakeMaker
when one of the modules in PREREQ_PM fails to load is longer than it
needs to be and a pain to read. I suggest changing the current
dependency-checking code in MakeMaker.pm (line ~335) to something like:
my %prereqs = %{$self->{PREREQ_PM}};
foreach my $p (sort keys %prereqs) {
eval "require $p";
if ($@) {
if ($@ =~ /^Can\'t locate \S+\.pm in \@INC/) {
# Abbreviate the error message.
warn "Required module $p seems not to be installed.\n";
}
else {
# Some unusual error, give it in full.
warn "Required module $p failed to load: $@";
}
++ $err;
}
elsif ($p->VERSION < $prereqs{$p}) {
warn "Version $prereqs{$p} or later of module $p required\n";
++ $err;
}
}
- --
Ed Avis <[EMAIL PROTECTED]>
Finger for PGP key
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE8il1fIMp73jhGogoRAiL7AJ4+TQkNfhBganaXG0Z3CJmIcHLISgCfe65X
4M6/YKvK5dWWekpjR4OhL1E=
=QAWt
-----END PGP SIGNATURE-----