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.
In reply to Re: grepping the location of a value from a datastructure
by Laurent_R
in thread grepping the location of a value from a datastructure
by rastoboy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |