If you use "if" or "open" or any other module names that also happen to be keyword names in PREREQ_PM, then MM will fail to detect anything.
The patch below fixes that.
Thanks,
/Autrijus/
--- MakeMaker.pm.orig Thu Oct 30 19:49:43 2003
+++ MakeMaker.pm Thu Oct 30 19:52:12 2003
@@ -381,7 +381,9 @@
foreach my $prereq (sort keys %{$self->{PREREQ_PM}}) {
# 5.8.0 has a bug with require Foo::Bar alone in an eval, so an
# extra statement is a workaround.
- eval "require $prereq; 0";
+ my $file = "$prereq.pm";
+ $file =~ s{::}{/}g;
+ eval { require $file; 0 };
my $pr_version = $prereq->VERSION || 0;
signature.asc
Description: =?UTF-8?Q?=E9=80=99=E6=98=AF=E6=95=B8=E4=BD=8D=E5=8A=A0=E7=B0=BD?= =?UTF-8?Q?=E7=9A=84=E9=83=B5?= =?UTF-8?Q?=E4=BB=B6?=
