( 'key2' => 'bar', 'key1' => 'foo', 'not_a_key' => undef, ) #### @a2 = @h1{grep exists $h1{$_}, @a1};