]> git.vpit.fr Git - perl/modules/autovivification.git/blobdiff - samples/hash2array.pl
Switch to qw<>
[perl/modules/autovivification.git] / samples / hash2array.pl
index 9fc4a61a773e68d15abae8ad54d3e94b65b0c47e..d58d205dcfced2b9583618b66413d083c488bb4a 100644 (file)
@@ -3,8 +3,8 @@
 use strict;
 use warnings;
 
-use Fatal qw/open close/;
-use Text::Balanced qw/extract_bracketed/;
+use Fatal qw<open close>;
+use Text::Balanced qw<extract_bracketed>;
 
 open my $hash_t,       '<', 't/20-hash.t';
 open my $array_t,      '>', 't/30-array.t';
@@ -90,11 +90,11 @@ close $hash_t;
 close $array_t;
 close $array_fast_t;
 
-open my $hash_specific_t,  '<', 't/22-hash-kv.t';
-open my $array_specific_t, '>', 't/32-array-kv.t';
+open my $hash_kv_t,  '<', 't/22-hash-kv.t';
+open my $array_kv_t, '>', 't/32-array-kv.t';
 
 $in_data = 0;
-while (<$hash_specific_t>) {
+while (<$hash_kv_t>) {
  if (/^__DATA__$/) {
   $in_data = 1;
  } elsif (!$in_data) {
@@ -107,5 +107,5 @@ while (<$hash_specific_t>) {
  } else {
   $_ = convert_testcase($_, 1);
  }
- print $array_specific_t $_;
+ print $array_kv_t $_;
 }