perlcall has a section on Returning a List of Values. If you don't want to flatten the hash into a list of values, consider returning a reference to the hash, by returning newSVrv(HV) (or whatever the magic C incantation would be, according to perlguts.
In reply to Re^3: Calling PERL from C code - How to "build" a hash on the PERL stack before calling the function?
by Corion
in thread Calling PERL from C code - How to "build" a hash on the PERL stack before calling the function?
by itamarat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |