]> git.vpit.fr Git - perl/modules/Variable-Magic.git/blobdiff - t/35-stash.t
Replace $] by "$]"
[perl/modules/Variable-Magic.git] / t / 35-stash.t
index d1fc7a480f177145555f10327634a64ca5cf837a..d8b8168ac6e79e1b8036896dbcd71b242eb4fe2a 100644 (file)
@@ -96,7 +96,7 @@ cast %Hlagh::, $wiz;
  is $@, "ok\n", 'stash: function calls compiled fine';
  is_deeply \%mg, {
   fetch => \@calls,
-  store => ($] < 5.011002 ? \@calls : [ map { ($_) x 2 } @calls ]),
+  store => ("$]" < 5.011002 ? \@calls : [ map { ($_) x 2 } @calls ]),
  }, 'stash: function calls';
 }
 
@@ -296,7 +296,7 @@ $_ => sub {
 CB
 } qw<fetch store exists delete>);
 
-my $uo_exp = $] < 5.011002 ? 2 : 3;
+my $uo_exp = "$]" < 5.011002 ? 2 : 3;
 
 $code .= ', data => sub { +{ guard => 0 } }';