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 };
I've heard several times that 'eval { require $foo }' has problems with older perls, that's why you keep on seeing eval "require $foo".
__________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
