my $is_as_822 = 0;
print "Checking if this is ActiveState Perl 5.8.8 build 822 or higher... ";
-if ("$]" == 5.008008 and defined $as_perl and $as_perl >= 822) {
+if ("$]" == 5.008_008 and defined $as_perl and $as_perl >= 822) {
$is_as_822 = 1;
push @DEFINES, '-DVMG_COMPAT_ARRAY_PUSH_NOLEN=1';
}
}
# Fork emulation got "fixed" in 5.10.1
-if ($^O eq 'MSWin32' && "$]" < 5.010001) {
+if ($^O eq 'MSWin32' && "$]" < 5.010_001) {
push @DEFINES, '-DVMG_FORKSAFE=0';
print "Fork safety not ensured for perl 5.8.x and 5.10.0 on Windows.\n";
}
PL_FILES => {},
@DEFINES,
PREREQ_PM => \%PREREQ_PM,
- MIN_PERL_VERSION => 5.008,
+ MIN_PERL_VERSION => '5.008',
META_MERGE => \%META,
dist => {
PREOP => "pod2text -u $file > \$(DISTVNAME)/README",
my $suffix = "\nExecution(?s:.*)";
if ("$]" >= 5.017) {
$suffix = "(?:\nsalsify at -e line \\d+.){16}" . $suffix;
- } elsif ("$]" >= 5.011005) {
+ } elsif ("$]" >= 5.011_005) {
$suffix = "(?:\nsalsify at -e line \\d+.){12}" . $suffix;
} elsif ("$]" >= 5.011) {
$suffix = "(?:\nsalsify at -e line \\d+.){3}" . $suffix;
my $is_5130_release = ("$]" == 5.013 && !$Config{git_describe}) ? 1 : 0;
-my $aelem = "$]" <= 5.008003 ? 'aelem'
- : ("$]" < 5.013 or $is_5130_release)
+my $aelem = "$]" <= 5.008_003 ? 'aelem'
+ : ("$]" < 5.013 or $is_5130_release)
? 'aelemfast'
: 'sassign';
my $aelemf = ("$]" < 5.013 or $is_5130_release) ? 'aelemfast' : 'sassign';
is $b, 1, 'scalar: array element: exists correctly';
# $b has to be set inside the block for the test to pass on 5.8.3 and lower
-watch { $b = delete $a[1] } { get => 1, free => ("$]" > 5.008005 ? 1 : 0) },
+watch { $b = delete $a[1] } { get => 1, free => ("$]" > 5.008_005 ? 1 : 0) },
'array element: delete';
is $b, 6, 'scalar: array element: delete correctly';
watch { cast *b, $wiz } +{ }, 'cast 2';
} +{ }, 'scope end';
-%get = () if "$]" >= 5.013007;
+%get = () if "$]" >= 5.013_007;
watch { undef *a } +{ %get }, 'undef';
is $@, "ok\n", 'stash: function calls compiled fine';
is_deeply \%mg, {
fetch => \@calls,
- store => ("$]" < 5.011002 ? \@calls : [ map { ($_) x 2 } @calls ]),
+ store => ("$]" < 5.011_002 ? \@calls : [ map { ($_) x 2 } @calls ]),
}, 'stash: function calls';
}
CB
} qw<fetch store exists delete>);
-my $uo_exp = "$]" < 5.011002 ? 2 : 3;
+my $uo_exp = "$]" < 5.011_002 ? 2 : 3;
$code .= ', data => sub { +{ guard => 0 } }';
skipall 'This perl wasn\'t built to support threads'
unless $Config{useithreads};
skipall 'perl 5.13.4 required to test thread safety'
- unless $force or "$]" >= 5.013004;
+ unless $force or "$]" >= 5.013_004;
my $t_v = $force ? '0' : '1.67';
my $has_threads = do {