%hash = %{ ( grep hash_the_right_primary_key($_), @hashes )[0] };