I don't think you need to play with HeSVKEY_set directly. Assuming key is an SV, why not use hv_store_ent instead?
CODE: SvREFCNT_inc(key); SvREFCNT_inc(val); hv_store_ent( hv, key, val, 0 );
• another intruder with the mooring in the heart of the Perl
In reply to Re: Using SV as key in hash
by grinder
in thread Using SV as key in hash
by liz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |