]> git.vpit.fr Git - perl/modules/Lexical-Types.git/blobdiff - t/11-args.t
Replace $] by "$]"
[perl/modules/Lexical-Types.git] / t / 11-args.t
index 695d6c9ad04e895af97886b55a72a35c3546245f..a1018905af479f52071db03dff4b5c8e74eb4bdd 100644 (file)
@@ -96,7 +96,7 @@ use Test::More tests => 14 + 6;
 
 {
  my $expect = qr/^Lexical::Types mangler should return zero, one or two scalars, but got 3/;
- diag 'This will throw two warnings' if $] >= 5.008008 and $] < 5.009;
+ diag 'This will throw two warnings' if "$]" >= 5.008008 and "$]" < 5.009;
  local $@;
  eval q[
   use Lexical::Types as => sub { qw<a b c> };
@@ -117,7 +117,7 @@ use Test::More tests => 14 + 6;
 
 {
  my $expect = qr/^banana at \(eval \d+\) line 2/;
- diag 'This will throw two more warnings' if $] >= 5.008008 and $] < 5.009;
+ diag 'This will throw two more warnings' if "$]" >= 5.008008 and "$]" < 5.009;
  local $@;
  eval q[
   use Lexical::Types as => sub { die 'banana' };