in reply to Re: combining hashes based on key values
in thread combining hashes based on key values

Very sweet. You have set me on the right path... not the shortest path, but the most interesting, meandering, full-of-knowledge path. There seems to be much fun in List::Compare

Thanks.

--

when small people start casting long shadows, it is time to go to bed
  • Comment on Re^2: combining hashes based on key values

Replies are listed 'Best First'.
Re^3: combining hashes based on key values
by davido (Cardinal) on Jun 08, 2005 at 05:00 UTC

    As I look at it again, you're more interested in left complement and right complement than in symmetrical difference, because you're going to need to build a list based on what's only in jibber, a list based on what's only in jabber, and then the intersection (a list based on what's in both jibber and in jabber).

    List::Compare is going to get you most of the way there, if you look at the two input lists as:

    @{$in_hash{jibber}} # Left list @{$in_hash{jabber}} # Right list

    Dave