From: Graham Knop Date: Tue, 12 Aug 2014 07:49:57 +0000 (-0400) Subject: fix Makefile.PL boilerplate bug X-Git-Tag: v1.005005~6 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2ef98eddeb583f763b6b9ba13ae1c5003fb2bff1;p=p5sagit%2Fstrictures.git fix Makefile.PL boilerplate bug --- diff --git a/Makefile.PL b/Makefile.PL index bebacda..33df57c 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -91,7 +91,7 @@ $MM_ARGS{META_ADD} = { 'meta-spec' => { version => 2 }, %META } for (qw(configure build test runtime)) { my $key = $_ eq 'runtime' ? 'PREREQ_PM' : uc $_.'_REQUIRES'; my $r = $MM_ARGS{$key} = { - %{$META{prereqs}{$_}{requires}}, + %{$META{prereqs}{$_}{requires} || {}}, %{delete $MM_ARGS{$key} || {}}, }; defined $r->{$_} or delete $r->{$_} for keys %$r;