Subject: | Prerequisite modules which exist are reported as not found |
ExtUtils-MakeMaker-6.06_01
Linux olympus 2.4.18-19.8.0 #1 Thu Dec 12 04:37:40 EST 2002 i686 athlon i386 GNU/Linux
This is perl, v5.8.0 built for i386-linux-thread-multi
I get warnings such as this even though the prerequisite module exists (i.e., I don't get an error when I use: perl -mPod::Man -e 1).
Warning: prerequisite Pod::Man 0 not found.
Looking at MakeMaker.pm:
360 foreach my $prereq (sort keys %{$self->{PREREQ_PM}}) {
361 eval "require $prereq";
362
363 my $pr_version = $prereq->VERSION || 0;
364
365 if ($@) {
366 warn sprintf "Warning: prerequisite %s %s not found.\n",
It appears at line 365, $@ is evaluated as non-null, contrary to expectations. I thought these were equivalent in perl4, but in perl5, there appears to be a difference between:
eval "require $prereq";
and
require $prereq;