my @array; for my $href( \%hash1, \%hash2 ){ while( my ($k, $v) = each %{$href} ) { push @array, { $k => $v }; } }