]> git.vpit.fr Git - perl/modules/Variable-Magic.git/blobdiff - Makefile.PL
Compatibility fix for 5.11.1
[perl/modules/Variable-Magic.git] / Makefile.PL
index d541a7c00c1f6e49cd582573d44098b1b4c6e023..a4bd42e8b3d0a7a452e3967edeea79052e8288c2 100644 (file)
@@ -42,9 +42,10 @@ if ($^V eq v5.8.8) {
 print $is_as ? "yes\n" : "no\n";
 
 my $is_5110rel = 0;
-print "Checking if this is a released perl 5.11.0... ";
-if ($^V eq v5.11.0 and not defined $pl) {
+print "Checking if this is a released perl 5.11.0 or higher... ";
+if ($^V ge v5.11.0 and not defined $pl) {
  my $describe = $Config{git_describe};
+ # An empty 'describe' is fine
  if (defined $describe and $describe !~ /^GitLive-/) {
   $is_5110rel = 1;
   push @DEFINES, '-DVMG_COMPAT_ARRAY_PUSH_NOLEN=0';