Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^2: Using SV as key in hashby liz (Monsignor) |
on Jul 17, 2006 at 06:16 UTC ( [id://561679]=note: print w/replies, xml ) | Need Help?? |
I want to say that the keys to an HV are always stringified and kept as char*, not as SV*s.
Well, that's just it. There is a provision in hv.c to actually have an SV as the key (rather than a char *). The HeSVKEY_set macro is supposed to be doing that.
A good starting place might be to look at what Tie::RefHash does
Liz
In Section
Seekers of Perl Wisdom
|
|