On 2006-04-23, at 02:26:54 -0700, Yitzchak Scott-Thoennes wrote:
> On Sun, Apr 23, 2006 at 11:01:17AM +0200, Marcus Holland-Moritz wrote:
> > The only thing worth mentioning is that with perl 5.003,
> > the following happens:
> >
> > [EMAIL PROTECTED] $ perl5.003 Makefile.PL
> > Can't locate ExtUtils/Command.pm in @INC at Makefile.PL line 4.
> > BEGIN failed--compilation aborted at Makefile.PL line 4.
>
> Yes, run-time "require VERSION" is almost always the wrong thing to do.
>
> > I'd suggest the following change:
> >
> > --- Makefile.PL.orig 2006-04-23 10:58:31.000000000 +0200
> > +++ Makefile.PL 2006-04-23 10:58:50.000000000 +0200
> > @@ -1,4 +1,4 @@
> > -require 5.004_05;
> > +BEGIN { require 5.004_05 }
>
> "use 5.004_05;" would be better.
No, it wouldn't.
[EMAIL PROTECTED] $ head -n 5 Makefile.PL
use 5.004_05;
use ExtUtils::MakeMaker;
use ExtUtils::Command qw( touch rm_f );
[EMAIL PROTECTED] $ perl5.003 Makefile.PL
syntax error at Makefile.PL line 1, near "use 5.004_05"
Execution of Makefile.PL aborted due to compilation errors.
Marcus
--
Statistics means never having to say you're certain.