# use hashrefs to avoid them being expanded into the list. @array = (\%hash0, \%hash1, \%hash2, \%hash3); # Loop over the array for my $href (@array) { for my $key (keys %$href) { print "key: $key, value: $href->{$key}\n"; } }