perl-test-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From steve...@apache.org
Subject svn commit: r1672023 - /perl/Apache-Test/trunk/Makefile.PL
Date Wed, 08 Apr 2015 07:53:14 GMT
Author: stevehay
Date: Wed Apr  8 07:53:13 2015
New Revision: 1672023

URL: http://svn.apache.org/r1672023
Log:
Silence warnings like 'Argument "3.48_01" isn't numeric in numeric ge (>=)' when checking
prereq versions

Modified:
    perl/Apache-Test/trunk/Makefile.PL

Modified: perl/Apache-Test/trunk/Makefile.PL
URL: http://svn.apache.org/viewvc/perl/Apache-Test/trunk/Makefile.PL?rev=1672023&r1=1672022&r2=1672023&view=diff
==============================================================================
--- perl/Apache-Test/trunk/Makefile.PL (original)
+++ perl/Apache-Test/trunk/Makefile.PL Wed Apr  8 07:53:13 2015
@@ -124,7 +124,7 @@ sub chk_version {
 
     my $vstr = ${"${pkg}::VERSION"} ? "found v" . ${"${pkg}::VERSION"}
         : "not found";
-    my $vnum = ${"${pkg}::VERSION"} || 0;
+    my $vnum = eval(${"${pkg}::VERSION"}) || 0;
 
     print $vnum >= $wanted ? "ok\n" : " " . $vstr . "\n";
 



Mime
View raw message