![]() |
|
Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: hv_store_entby rpc (Monk) |
on Jan 18, 2001 at 01:15 UTC ( #52616=note: print w/replies, xml ) | Need Help?? |
This may be your problem. From the perlguts manpage: Note that both `hv_store' and `hv_store_ent' do not increment the reference count of the stored `val', which is the caller's responsibility. If these functions return a NULL value, the caller will usually have to decrement the reference count of `val' to avoid a memory leak. Maybe create the SV with: Or mortalize it with: Might work? You might need to Mortalize 'key' too.
In Section
Seekers of Perl Wisdom
|
|