It would be good to add a workaround (plus warning perhaps)
to ExtUtils/MM_Unix.pm to save lots of people lots of headaches.
New versions of MakeMaker should be able to cope with old Makefile.PL
files as far as practically possible.
A simple
$foo = [ split / /, $foo ] unless ref $foo;
would probably suffice.
Tim.
On Tue, Apr 16, 2002 at 05:00:41PM +0100, Leon Brocard wrote:
> [copied to [EMAIL PROTECTED] just so you know that bleadperl
> makemaker is being stricter than it used to be]
>
> Bleadperl MakeMaker doesn't appear to like the Makefile.PL
> in DBD-mysql-2.1013:
>
> Checking if your kit is complete...
> Looks good
> Can't use string ("dbimon pmysql") as an ARRAY ref while "strict refs" in use at
>/home/acme//lib/perl5/5.7.3/ExtUtils/MM_Unix.pm line 1407.
>
> It turns out that dbimon and pmysql aren't actually in the
> distribution so the following patch makes everything ok:
>
> --- Makefile.PL.orig Tue Apr 16 09:51:39 2002
> +++ Makefile.PL Tue Apr 16 09:54:32 2002
> @@ -77,7 +77,6 @@
> $cflags .= " -DDBD_MYSQL_WITH_SSL" if $opt->{'ssl'};
> my %o = ( 'NAME' => 'DBD::mysql',
> 'INC' => $cflags,
> - 'EXE_FILES' => 'dbimon pmysql',
> 'dist' => { 'SUFFIX' => ".gz",
> 'DIST_DEFAULT' => 'all installhtml tardist',
> 'COMPRESS' => "gzip -9f" },
>
> HTH, Leon
> --
> Leon Brocard.............................http://www.astray.com/
> Nanoware...............................http://www.nanoware.org/
>
> .... I don't worry about driving when I'm tired - I sleep just fine