in reply to Re: Common hash keys
in thread Common hash keys

This node falls below the community's minimum standard of quality and will not be displayed.

Replies are listed 'Best First'.
Re^3: Common hash keys
by roboticus (Chancellor) on Jun 07, 2008 at 12:12 UTC
    Anonymous--
    Sorry, but none of these
    Data: Hashes (Associative Arrays) <<<snip>>> How can I get the unique keys from two hashes? <<<snip>>>
    relate to my question.

    You suffer from a failure of the imagination. The preceding item does relate to your question. It's the complementary action to the one you requested. Compute the list of unique keys and all your keys not on that list are the ones common to your two hashes. Alternatively, modify the algorithm to keep the keys that don't satisfy the uniqueness criterion and you have the list of keys you want.

    If that's not obvious, you might want to reconsider your career choices...or at least refrain from posting snotty replies to any assistance you are given.

    ...roboticus
    A reply falls below the community's threshold of quality. You may see it by logging in.
Re^3: Common hash keys
by moritz (Cardinal) on Jun 07, 2008 at 08:42 UTC
    Sorry, but none of these (...) relate to my question.

    Well, they are not the only topics in perlfaq4. I was referring to intersection of arrays. keys %hash is a list after all, and although the FAQ speaks of arrays, it works for lists as well.

    A reply falls below the community's threshold of quality. You may see it by logging in.