X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F17-ctl.t;h=ca22761333c3a5e5959aaddd4d6fb50a1af1d2d0;hb=b30ad18085c2c1d922eff05ee4801c38ad465807;hp=92a4c0cc7930d5a9d3dc8a7c1e74185d464bc747;hpb=d2dd736f74a7ffa505c480e90bca3a82cfe05e83;p=perl%2Fmodules%2FVariable-Magic.git diff --git a/t/17-ctl.t b/t/17-ctl.t index 92a4c0c..ca22761 100644 --- a/t/17-ctl.t +++ b/t/17-ctl.t @@ -269,9 +269,9 @@ use Variable::Magic qw; BEGIN { cast %::, wizard fetch => sub { die CODE skip 'Test code didn\'t run properly' => $count unless defined $output; my $suffix = "\nExecution(?s:.*)"; - if ($] >= 5.011005) { + if ("$]" >= 5.011005) { $suffix = "(?:\nsalsify at -e line \\d+.){12}" . $suffix; - } elsif ($] >= 5.011) { + } elsif ("$]" >= 5.011) { $suffix = "(?:\nsalsify at -e line \\d+.){3}" . $suffix; } like $output, expect('salsify', '-e', $suffix),