in reply to Re: array of hashes questionin thread array of hashes question
After fixing the unclosed string literal, I get output. Is there another problem?
a 2 2 b 5 5 c 10 10 [download]
a 1 1 [download]
a 1 1 b 1 1 [download]
b 1 1 d 10 10 [download]
gives
c : 10: 10 a : 10: 10 b : 10: 10 [download]
By the way, are you sure you want if (exists $a[$j]{$key})? Notice the lack of "d" in the output.