On Thu, Oct 30, 2003 at 11:53:18AM -0800, Stas Bekman wrote:
> >--- 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".

I've never heard that, unless we're talking about MacPerl but that's
unsupported by MakeMaker.

The reason you keep seeing

        eval "require $foo";

is because to do it with an eval block its

        my $file = "$foo.pm";
        $file =~ s{::}{/}g;
        eval { require $foo };

Its unfortunate that require defaults to $_. :(


-- 
Michael G Schwern        [EMAIL PROTECTED]  http://www.pobox.com/~schwern/
Cottleston, Cottleston, Cottleston Pie.
A fly can't bird, but a bird can fly.
Ask me a riddle and I reply:
"Cottleston, Cottleston, Cottleston Pie."

Reply via email to