mug has asked for the wisdom of the Perl Monks concerning the following question:
I have two hashes. The keys of %hash1 are values in %hash2. %hash2 can have multiple values for the same key. I want to find the missing set of values (that is, keys of %hash1) for each key in %hash2.
Example:
my %hash1 = ( A => 5, B => 7, C => 2, D => 8, ); my %hash2 = ( 1234 => "A,C", 4567 => "A,B,D", 5678 => "C", );
Originally posted as a Categorized Question.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How do I compare key from one hash with values from other?
by 2501 (Pilgrim) on Dec 06, 2001 at 21:08 UTC | |
|
Re: How do I compare key from one hash with values from other?
by aspect_khaliq (Novice) on Jan 18, 2007 at 11:00 UTC | |
|
Re: How do I compare key from one hash with values from other?
by jdporter (Paladin) on Jan 18, 2007 at 16:00 UTC |