- or download this
foreach my $hash (@a){
foreach my $key (keys %{$hash}){
...
}
}
- or download this
use strict;
use warnings;
use diagnostics;
- or download this
$a[$j]{$key}
and
$a[$j]->{$key}
both will work
- or download this
for my $key (keys %{$a[0]})
according to your above presented logic
- or download this
before calling the second for loop just try
use Data::Dumper;
print Dumper \@a;