in reply to Dotted hash access

See also XPath. Perhaps you just want something simple like Locations/Earth/Buildings/PowerPlant/cost but if you use real XPath, more powerful expressions are possible as well. Consider //PowerPlant which would produce every PowerPlant node.

Replies are listed 'Best First'.
Re^2: Dotted hash access
by sfink (Deacon) on Nov 25, 2004 at 09:52 UTC
    That's not a bad idea. I've used XPath -- well, actually I haven't, but I implemented something very similar to it (and borrowed as much syntax and semantics as I could in the process.) It may be overkill here, but it seems like a nice middle ground between straight Perl data structure access and the generality of SQL.