in reply to Calling PERL from C code - How to "build" a hash on the PERL stack before calling the function?
In perlguts,Working With HVs, the code to create a new HV ("Hash Variable"?) is:
HV* my_hash; my_hash= newHV();
Then, you use hv_store() and hv_fetch to read/write the keys and values of the hash.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Calling PERL from C code - How to "build" a hash on the PERL stack before calling the function?
by itamarat (Acolyte) on Jul 07, 2014 at 09:12 UTC | |
by Corion (Patriarch) on Jul 07, 2014 at 09:16 UTC | |
by tobyink (Canon) on Jul 07, 2014 at 13:53 UTC |