]> git.vpit.fr Git - perl/modules/autovivification.git/blobdiff - samples/hash2array.pl
Replace $] by "$]"
[perl/modules/autovivification.git] / samples / hash2array.pl
index d58d205dcfced2b9583618b66413d083c488bb4a..d703ada917d6faf904b2d1d26472d82f5bb4bfac 100644 (file)
@@ -102,7 +102,7 @@ while (<$hash_kv_t>) {
   if (/\bplan\s*[\s\(]\s*tests\b/) {
    s/\s*;?\s*$//;
    s/^(\s*)//;
-   $_ = "$1if (\$] >= 5.011) { $_ } else { plan skip_all => 'perl 5.11 required for keys/values \@array' }\n";
+   $_ = qq($1if ("\$]" >= 5.011) { $_ } else { plan skip_all => 'perl 5.11 required for keys/values \@array' }\n);
   }
  } else {
   $_ = convert_testcase($_, 1);