in reply to Re^2: array of hashes question
in 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
a 1 1
a 1 1
a 1 1
a 1 1
a 1 1 b 1 1
a 1 1 b 1 1
a 1 1 b 1 1
a 1 1 b 1 1
b 1 1 d 10 10

gives

c : 10: 10 a : 10: 10 b : 10: 10

By the way, are you sure you want if (exists $a[$j]{$key})? Notice the lack of "d" in the output.