in reply to Using SV as key in hash
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Using SV as key in hash
by liz (Monsignor) on Jul 17, 2006 at 08:52 UTC |