]> git.vpit.fr Git - perl/modules/Sub-Prototype-Util.git/commitdiff
Replace occurences of $^V by $]
authorVincent Pit <vince@profvince.com>
Thu, 25 Aug 2011 09:54:25 +0000 (11:54 +0200)
committerVincent Pit <vince@profvince.com>
Thu, 25 Aug 2011 10:13:42 +0000 (12:13 +0200)
t/11-wrap.t
t/12-recall.t

index 88ee5c6563034295b4b75f24d38270e07c0c708e..4f88d76ac982cb986c37bc20bc0e063ce6238a71 100644 (file)
@@ -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<set_prototype>;
 use Sub::Prototype::Util qw<wrap>;
@@ -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<u v w>;
index 504510deaae22389bbe141b0d30028d8125345f6..d86235fae3b056a5b673f3f10c9a2fe2d88f944d 100644 (file)
@@ -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<set_prototype>;
 use Sub::Prototype::Util qw<recall>;
@@ -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 ],