Do you know where your variables are? | |
PerlMonks |
Re: using references as keys in a hash.by pfaut (Priest) |
on Feb 23, 2003 at 02:11 UTC ( [id://237838]=note: print w/replies, xml ) | Need Help?? |
Perl can use the stringified reference as a key in a hash but that's not the same thing as using the reference itself. The reference is converted to a string to use as a key. The resulting key is just a scalar. You might want to look into Tie::RefHash.
In Section
Seekers of Perl Wisdom
|
|