From a852d4969fd008e40aaf38965209c9947628b4ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Sun, 7 Feb 2021 23:38:16 +0800 Subject: [PATCH] Revised Makefile.PL and Build.PL. --- Build.PL | 2 ++ Makefile.PL | 16 ++++------------ 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/Build.PL b/Build.PL index a3308d4..7979b66 100755 --- a/Build.PL +++ b/Build.PL @@ -1,5 +1,7 @@ #! /usr/bin/perl -w +require 5.008; use strict; +use warnings FATAL => 'all'; use Module::Build; my $build = Module::Build->new( diff --git a/Makefile.PL b/Makefile.PL index 3cfe9d1..746e8ce 100755 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,17 +1,9 @@ #! /usr/bin/perl -w +require 5.008; use strict; +use warnings FATAL => 'all'; use ExtUtils::MakeMaker; -use vars qw($eummver %sign %license); -$eummver = $ExtUtils::MakeMaker::VERSION; -$eummver =~ s/_//; -# SIGN is only availabe since ExtUtils::MakeMaker 6.18 -%sign = qw(); -%sign = (SIGN => 1) if $eummver > 6.17; -# LICENSE is only availabe since ExtUtils::MakeMaker 6.30_01 -%license = qw(); -%license = (LICENSE => "perl") if $eummver > 6.30; - WriteMakefile( NAME => "Acme::GuessNumber", VERSION => "0.04", @@ -19,8 +11,8 @@ WriteMakefile( AUTHOR => "imacat ", PREREQ_PM => { }, PL_FILES => { }, - %sign, - %license, + LICENSE => "perl", + SIGN => 1, dist => { COMPRESS => "gzip -9",