X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F35-stash.t;h=d8b8168ac6e79e1b8036896dbcd71b242eb4fe2a;hb=b30ad18085c2c1d922eff05ee4801c38ad465807;hp=d1fc7a480f177145555f10327634a64ca5cf837a;hpb=d2dd736f74a7ffa505c480e90bca3a82cfe05e83;p=perl%2Fmodules%2FVariable-Magic.git diff --git a/t/35-stash.t b/t/35-stash.t index d1fc7a4..d8b8168 100644 --- a/t/35-stash.t +++ b/t/35-stash.t @@ -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); -my $uo_exp = $] < 5.011002 ? 2 : 3; +my $uo_exp = "$]" < 5.011002 ? 2 : 3; $code .= ', data => sub { +{ guard => 0 } }';