X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=Makefile.PL;fp=Makefile.PL;h=a88b8161de0f2dd553f601454f351b41756a0920;hb=e26cff534d772ff66c0cdf5761787f43c6b7c5ec;hp=f4df485da4911a10d5411225efdac1cfc5b69621;hpb=2e88c3aab11a9282e757ef97d7ff3a2da749c4d9;p=perl%2Fmodules%2FScope-Upper.git diff --git a/Makefile.PL b/Makefile.PL index f4df485..a88b816 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -15,13 +15,13 @@ for ($pl, $desc) { my @DEFINES; print "Checking if this is an official release of perl... "; -my $is_release = ($] < 5.011) ? (defined($pl) || defined($desc) ? 0 : 1) - : (defined($desc) ? 0 : 1); +my $is_release = ("$]" < 5.011) ? (defined($pl) || defined($desc) ? 0 : 1) + : (defined($desc) ? 0 : 1); push @DEFINES, "-DSU_RELEASE=$is_release"; print $is_release ? "yes\n" : "no\n"; # Threads, Windows and 5.8.x don't seem to be best friends -if ($^O eq 'MSWin32' && $^V lt v5.9.0) { +if ($^O eq 'MSWin32' && "$]" < 5.009) { push @DEFINES, '-DSU_MULTIPLICITY=0'; }