in reply to grepping the location of a value from a datastructure

But what I really want is like the location of $VAR1=>{'base'}{'key2'}. How can I get that (elegantly)?

That really does not make much sense to me. Location? With your data, you could presumably say that the location of 'value2' is $hash{'base'}{'key2'}, because 'value2' is stored there. But the location %VAR1 being {'base'}{'key2'}, this I don't understand.

  • Comment on Re: grepping the location of a value from a datastructure

Replies are listed 'Best First'.
Re^2: grepping the location of a value from a datastructure
by rastoboy (Monk) on Aug 07, 2013 at 17:35 UTC
    Sorry, like I said I wasn't even sure how to phrase the question. The first thing you said is what I'm after.