Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Problem to store referrence as key value in a hashby perladdict (Chaplain) |
on Jan 11, 2008 at 10:23 UTC ( [id://661847]=note: print w/replies, xml ) | Need Help?? |
In your example $key stores the reference as string,so you can't convert string back to reference,it will not returns a hard reference.
There is one special kind of hash Tie::RefHash in which we can store reference as keys.
In Section
Seekers of Perl Wisdom
|
|