From: Vincent Pit Date: Sat, 24 Aug 2013 18:04:04 +0000 (-0300) Subject: Make Perl version numbers more readable X-Git-Tag: v0.12~2 X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Fautovivification.git;a=commitdiff_plain;h=f25371b03406812f63205b28c7127c69381b9ad4 Make Perl version numbers more readable --- diff --git a/Makefile.PL b/Makefile.PL index c8d5838..ff784d6 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,4 +1,4 @@ -use 5.008003; +use 5.008_003; use strict; use warnings; @@ -34,7 +34,7 @@ if ($^O eq 'MSWin32' && "$]" < 5.009) { } # Fork emulation got "fixed" in 5.10.1 -if ($^O eq 'MSWin32' && "$]" < 5.010001) { +if ($^O eq 'MSWin32' && "$]" < 5.010_001) { push @DEFINES, '-DA_FORKSAFE=0'; } diff --git a/lib/autovivification.pm b/lib/autovivification.pm index 2a41072..8d68dc7 100644 --- a/lib/autovivification.pm +++ b/lib/autovivification.pm @@ -1,6 +1,6 @@ package autovivification; -use 5.008003; +use 5.008_003; use strict; use warnings; @@ -211,7 +211,7 @@ L 5.8.3. 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 (standard since perl 5.006). +L (standard since perl 5.6.0). =head1 SEE ALSO diff --git a/t/40-scope.t b/t/40-scope.t index 6b8361a..c3c57b5 100644 --- a/t/40-scope.t +++ b/t/40-scope.t @@ -38,7 +38,7 @@ our $blurp; is $@, '', 'second require test doesn\'t croak prematurely'; my $expect; $expect = { r1_main => { }, r1_eval => { } }; - $expect->{r2_eval} = { } if "$]" < 5.009005; + $expect->{r2_eval} = { } if "$]" < 5.009_005; is_deeply $blurp, $expect, 'second require test didn\'t vivify'; } diff --git a/t/51-threads-teardown.t b/t/51-threads-teardown.t index 862717d..164a047 100644 --- a/t/51-threads-teardown.t +++ b/t/51-threads-teardown.t @@ -21,7 +21,7 @@ sub run_perl { 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'; my $code = 1 + 2 + 4; diff --git a/t/lib/autovivification/TestThreads.pm b/t/lib/autovivification/TestThreads.pm index e77cf3d..25f2ae6 100644 --- a/t/lib/autovivification/TestThreads.pm +++ b/t/lib/autovivification/TestThreads.pm @@ -19,7 +19,7 @@ sub import { 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', [ ]);