X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Findirect.git;a=blobdiff_plain;f=t%2F21-bad.t;h=fa2c322bda0254260f76e5372eef0f3c692064d4;hp=c5944622871bd5cec19b0916779725f78d2e9cdf;hb=b11e5a01561dde92d778ab423666bc76ac358c6a;hpb=94eaa9a61ca1429f0cf218ba0e6512f0c0c073aa diff --git a/t/21-bad.t b/t/21-bad.t index c594462..fa2c322 100644 --- a/t/21-bad.t +++ b/t/21-bad.t @@ -101,7 +101,7 @@ SKIP: SKIP: { skip 'No space tests on perl 5.11' => 4 + @expected - if $] >= 5.011 and $] < 5.012; + if "$]" >= 5.011 and "$]" < 5.012; my $code = $code; $code =~ s/\$/\$ \n\t /g; @@ -280,15 +280,15 @@ meh $y 1, 2; meh $y, 1, 2; ---- [ 'meh', '$y' ] -#### $] < 5.010 # use feature 'state'; state $z +#### "$]" < 5.010 # use feature 'state'; state $z meh $z; ---- [ 'meh', '$z' ] -#### $] < 5.010 # use feature 'state'; state $z +#### "$]" < 5.010 # use feature 'state'; state $z meh $z 1, 2; ---- [ 'meh', '$z' ] -#### $] < 5.010 # use feature 'state'; state $z +#### "$]" < 5.010 # use feature 'state'; state $z meh $z, 1, 2; ---- [ 'meh', '$z' ]