From: Vincent Pit Date: Thu, 25 Aug 2011 09:54:25 +0000 (+0200) Subject: Replace occurences of $^V by $] X-Git-Tag: v0.10~5 X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FSub-Prototype-Util.git;a=commitdiff_plain;h=993667a6ba54b9a581601fddbca89172eb9a7504 Replace occurences of $^V by $] --- diff --git a/t/11-wrap.t b/t/11-wrap.t index 88ee5c6..4f88d76 100644 --- a/t/11-wrap.t +++ b/t/11-wrap.t @@ -3,7 +3,7 @@ use strict; use warnings; -use Test::More tests => 7 + 6 + 3 + 1 + 6 + 1 + (($^V ge v5.10.0) ? 2 : 0) + 1; +use Test::More tests => 7 + 6 + 3 + 1 + 6 + 1 + (("$]" >= 5.010) ? 2 : 0) + 1; use Scalar::Util qw; use Sub::Prototype::Util qw; @@ -101,7 +101,7 @@ sub cat (\[$@]\[$@]) { SKIP: { skip 'perl 5.8.x is needed to test execution of \[$@] prototypes' => 6 - if $^V lt v5.8.0; + if "$]" < 5.008; my $cat = wrap 'main::cat', ref => 'main::myref', sub => 1, @@ -128,7 +128,7 @@ my $noproto = wrap 'main::noproto', sub => 0; is($noproto, $noproto_exp, 'no prototype'); sub myit { my $ar = shift; push @$ar, @_; }; -if ($^V ge v5.10.0) { +if ("$]" >= 5.010) { set_prototype \&myit, '\@$_'; my $it = wrap 'main::myit'; my @a = qw; diff --git a/t/12-recall.t b/t/12-recall.t index 504510d..d86235f 100644 --- a/t/12-recall.t +++ b/t/12-recall.t @@ -3,7 +3,7 @@ use strict; use warnings; -use Test::More tests => 8 + 20 + (($^V ge v5.10.0) ? 4 : 0); +use Test::More tests => 8 + 20 + (("$]" >= 5.010) ? 4 : 0); use Scalar::Util qw; use Sub::Prototype::Util qw; @@ -56,7 +56,7 @@ my @tests = ( ); sub myit { push @{$_[0]->[2]}, 3; return 4 }; -if ($^V ge v5.10.0) { +if ("$]" >= 5.010) { set_prototype \&myit, '_'; push @tests, [ 'main::myit', '_ with argument', [ [ 1, 2, [ ] ], 5 ],