This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Fix a22f28a4268aa03c - array, not array reference. (gnat would be proud)
authorNicholas Clark <nick@ccl4.org>
Thu, 24 Sep 2009 18:02:52 +0000 (19:02 +0100)
committerNicholas Clark <nick@ccl4.org>
Thu, 24 Sep 2009 18:02:52 +0000 (19:02 +0100)
Just because it's syntactically valid and "works on my machine", er OS, doesn't
mean that it's bug free, even after careful inspection.

make_ext.pl

index 0fe892f..e606c36 100644 (file)
@@ -116,7 +116,7 @@ foreach (@extspec) {
 my $makecmd  = shift @pass_through; # Should be something like MAKE=make
 unshift @pass_through, 'PERL_CORE=1';
 
-my @dirs  = $opts{dir} || ['ext', 'cpan'];
+my @dirs  = @{$opts{dir} || ['ext', 'cpan']};
 my $target   = $opts{target}[0];
 $target = 'all' unless defined $target;