in reply to searching complex data structures

You mention that you have a 'hash of hashes' but then go on to say '3 or 4 levels down'?

The major benefit of using a hash is that it avoids the need to search.

A second benefit of a hash is that as the elements are named, it allows the addition of new elements without requiring code that references existing elements to be changed.

If you know the 'path' to your elements, use it. Otherwise what is the point of building the hash in the first place?

I fail completely to see why you think using the structure in the way it is designed to be used is in any way a 'cop out'.


Okay you lot, get your wings on the left, halos on the right. It's one size fits all, and "No!", you can't have a different color.
Pick up your cloud down the end and "Yes" if you get allocated a grey one they are a bit damp under foot, but someone has to get them.
Get used to the wings fast cos its an 8 hour day...unless the Govenor calls for a cyclone or hurricane, in which case 16 hour shifts are mandatory.
Just be grateful that you arrived just as the tornado season finished. Them buggers are real work.