in reply to array of hashes

Why? Shawn's first Rule of Programming: KISS; Hard to understand is costly to maintain. Keep your code easy to understand; don't be clever.