Help for this page

Select Code to Download


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