]> git.vpit.fr Git - perl/modules/Sub-Prototype-Util.git/blobdiff - t/11-wrap.t
Replace occurences of $^V by $]
[perl/modules/Sub-Prototype-Util.git] / t / 11-wrap.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>;