in reply to storing and using LoL path

I must not understand what you're looking for here. It seems to me that $lol->{$map{typeA}} is pretty much the same as $lol->{typeA} (as long as $map{typeA} is held constant).

I might also suggest that the only way you're going to get any $lol to respond sensibly to both $lol->{key1}[3]{key2} (which implies it's a hash ref) and $lol->[1]{key4} (which implies it's an array ref) is to make $lol an object which will use overload to be both things.

Perhaps you could tell us what you're really trying to do. This sounds a lot like an XY Problem.

Replies are listed 'Best First'.
Re^2: storing and using LoL path
by blazar (Canon) on May 28, 2007 at 19:58 UTC
    Perhaps you could tell us what you're really trying to do. This sounds a lot like an XY Problem.

    I would rather say an XWTFITL Problem! (Just coined...)

    However after some reading futher along this thread I think that the OP would like to "save" a dereferencing chain as a single "entity": of course strictly speaking this is not possible, but a module like Data::Diver which some of us mentioned could come close in functionality. However this makes me wonder about Perl 6.