Just another Perl shrine | |
PerlMonks |
Getting keys/values from a referenced hashby professa (Beadle) |
on Nov 27, 2001 at 20:44 UTC ( [id://127826]=perlquestion: print w/replies, xml ) | Need Help?? |
professa has asked for the wisdom of the Perl Monks concerning the following question:
Hi all!
I have a problem in getting values/keys from a dereferenced hash. I get that hash by reading a file where it was written to before and evaluating it to a variable via eval():
I can access values (using a reference to that hash) when I manually look for a key in the file and use it in my code: $test = $$results{"key"};
The problem is that I don't know the keys of that hash when reading from file since it's built at runtime with changing keys/values.
TIA, Michael davorg: fixed code tags
Back to
Seekers of Perl Wisdom
|
|