. How is your hash organized? That is not entirely clear from you example. Your print suggests it is not, in fact, 3 levels deep but is a set of three-element hashes, which is bad for your problem as presented. Is the key (
) just a anonymous hash? Example code for how you build your hash would be very helpful.