You are viewing a plain text version of this content. The canonical link for it is here.
Posted to test-commits@perl.apache.org by st...@apache.org on 2015/04/08 09:53:14 UTC

svn commit: r1672023 - /perl/Apache-Test/trunk/Makefile.PL

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";