XP is just a number | |
PerlMonks |
grepping the location of a value from a datastructureby rastoboy (Monk) |
on Aug 07, 2013 at 16:02 UTC ( [id://1048372]=perlquestion: print w/replies, xml ) | Need Help?? |
rastoboy has asked for the wisdom of the Perl Monks concerning the following question:
Greetings Brothers,
I'm not even sure how to phrase this question. I want to get the *location* of a value in a datastructure, as opposed to just seeing if it's there or not. For example: will output: But what I really want is like the location of $VAR1=>{'base'}{'key2'}. How can I get that (elegantly)? Any help would be greatly appreciated! rasto
Back to
Seekers of Perl Wisdom
|
|