From: Nicholas Clark Date: Wed, 4 May 2011 20:41:45 +0000 (+0200) Subject: eval $ExtUtils::MakeMaker::VERSION to avoid warnings about _ not being numeric. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=33d464ba15a1986e04334c570588029c4e04fc7a;p=p5sagit%2FDevel-Size.git eval $ExtUtils::MakeMaker::VERSION to avoid warnings about _ not being numeric. Frustratingly ExtUtils::MakeMaker->VERSION() returns the literal value of $ExtUtils::MakeMaker::VERSION so it's just as "not numeric" as reading the scalar directly. --- diff --git a/Makefile.PL b/Makefile.PL index c17ab12..5eb43c6 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -46,7 +46,7 @@ WriteMakefile( NAME => 'Devel::Size', VERSION_FROM => 'lib/Devel/Size.pm', DEFINE => "-DALIGN_BITS=$ptr_bits", - ($ExtUtils::MakeMaker::VERSION >= 6.47 ? (MIN_PERL_VERSION => '5.008') : ()), - ($ExtUtils::MakeMaker::VERSION >= 6.31 ? (LICENSE => 'perl') : ()), + (eval $ExtUtils::MakeMaker::VERSION >= 6.47 ? (MIN_PERL_VERSION => '5.008') : ()), + (eval $ExtUtils::MakeMaker::VERSION >= 6.31 ? (LICENSE => 'perl') : ()), realclean => {FILES=> $vtable_file}, );