-use 5.008003;
+use 5.008_003;
use strict;
use warnings;
}
# Fork emulation got "fixed" in 5.10.1
-if ($^O eq 'MSWin32' && "$]" < 5.010001) {
+if ($^O eq 'MSWin32' && "$]" < 5.010_001) {
push @DEFINES, '-DLT_FORKSAFE=0';
}
package Lexical::Types;
-use 5.008003;
+use 5.008_003;
use strict;
use warnings;
A C compiler.
This module may happen to build with a C++ compiler as well, but don't rely on it, as no guarantee is made in this regard.
-L<XSLoader> (standard since perl 5.006).
+L<XSLoader> (standard since perl 5.6.0).
=head1 SEE ALSO
{
my $expect = qr/^Lexical::Types mangler should return zero, one or two scalars, but got 3/;
- diag 'This will throw two warnings' if "$]" >= 5.008008 and "$]" < 5.009;
+ diag 'This will throw two warnings' if "$]" >= 5.008_008 and "$]" < 5.009;
local $@;
eval q[
use Lexical::Types as => sub { qw<a b c> };
{
my $expect = qr/^banana at \(eval \d+\) line 2/;
- diag 'This will throw two more warnings' if "$]" >= 5.008008 and "$]" < 5.009;
+ diag 'This will throw two more warnings' if "$]" >= 5.008_008 and "$]" < 5.009;
local $@;
eval q[
use Lexical::Types as => sub { die 'banana' };
SKIP: {
skip 'Broken with threaded perls before 5.8.4' => 1
- if $Config{useithreads} and "$]" < 5.008004;
+ if $Config{useithreads} and "$]" < 5.008_004;
use Lexical::Types as => sub {
# In 5.10, this closure is compiled before hints are enabled, so no hintseval
}
sub maybe_warn {
- diag 'This will throw two warnings' if "$]" >= 5.008008 and "$]" < 5.009;
+ diag 'This will throw two warnings' if "$]" >= 5.008_008 and "$]" < 5.009;
}
{
}
SKIP: {
- skip 'Kinda broken on old 5.8.x' => 1 if "$]" <= 5.008006;
+ skip 'Kinda broken on old 5.8.x' => 1 if "$]" <= 5.008_006;
maybe_warn();
local $@;
eval q!
::is($z, __FILE__.':6', 'pragma in use at the end');
}
TESTREQUIRED3
- @w = grep !/^warn:Attempt\s+to\s+free\s+unreferenced/, @w if "$]" <= 5.008003;
+ @w = grep !/^warn:Attempt\s+to\s+free\s+unreferenced/, @w if "$]" <= 5.008_003;
is $@, '', 'third require test didn\'t croak prematurely';
is_deeply \@w, [ ], 'third require test didn\'t warn';
is_deeply \@decls, [ map "Int3$_", qw<X Z> ],
SKIP:
{
- skip 'Fails on 5.8.2 and lower' => 1 if "$]" <= 5.008002;
+ skip 'Fails on 5.8.2 and lower' => 1 if "$]" <= 5.008_002;
my $status = run_perl <<' RUN';
{ package IntX; package IntY; package IntZ; }
eval q!
my Int $y;
my $desc = 'pragma in use in eval in require';
- if ("$]" < 5.009005) {
+ if ("$]" < 5.009_005) {
Test::More::is($y, undef, $desc);
} else {
Test::More::like($y, qr/^\(eval +\d+\):2$/, $desc);
skip_all 'This perl wasn\'t built to support threads'
unless $Config{useithreads};
skip_all 'perl 5.13.4 required to test thread safety'
- unless $force or "$]" >= 5.013004;
+ unless $force or "$]" >= 5.013_004;
load_or_skip_all('threads', $force ? '0' : '1.67', [ ]);