shivnani_s has asked for the wisdom of the Perl Monks concerning the following question:
output should be : comparing %hash1 with %hash 2 : found 1 match which is D comparing %hash1 with %hash 3 : found 1 match which is D comparing %hash2 with %hash 3 : found 1 match which is D and J my %hash1 = ( A => 1, B => 2, C => 3, D => 4, ); my %hash2 = ( D=>1 E =>2, F => 3, G => 4, H => 5, I => 6, J=>7 ); my %hash3 = ( J=>1 K =>2, L => 3, M => 4, N => 5, O => 6, P=>7 Q =>8, R =>9, S =>10, T => 11, U =>12, D=>13, );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Comparing three Hashes
by jethro (Monsignor) on Apr 20, 2011 at 11:45 UTC | |
|
Re: Comparing three Hashes
by moritz (Cardinal) on Apr 20, 2011 at 11:48 UTC | |
|
Re: Comparing three Hashes
by LanX (Saint) on Apr 20, 2011 at 11:49 UTC | |
|
Re: Comparing three Hashes
by InfiniteSilence (Curate) on Apr 20, 2011 at 13:24 UTC | |
|
Re: Comparing three Hashes
by Marshall (Canon) on Apr 20, 2011 at 19:47 UTC |