I tried this but it compares each key of every Hash in structure1 with each key of every Hash in structure2.foreach my $arrayItem1(@{$$HOAOH1{details}}) { foreach my $arrayItem2(@{$$HOAOH2{details}}) { foreach my $keyArrayItem1(sort keys%$arrayItem1) { if ($$arrayItem1{$keyArrayItem1} eq $$arrayItem2{$keyArray +Item1}) { print "Match:$$arrayItem1{$keyArrayItem1} $$arrayItem2 +{$keyArrayItem1}\n"; } } } }
In reply to Re^2: Compare array of hashes
by AnishaM
in thread Compare array of hashes
by AnishaM
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |