in reply to Return a hash from Perl to C
See perl_call_pv -> call_pv to learn why.perl_call_pv(aTHX_ i, j);
You should look into get_hv (see perldoc `perlguts', perldoc `perlapi').
And while you're at it, you might wanna stop by the Extending and Embedding Perl Forum, or even buy the book
update: Just return a reference to your hash from the function so that it's on the stack, and then just grab it from the stack (POPs).
|
MJD says you can't just make shit up and expect the computer to know what you mean, retardo! I run a Win32 PPM repository for perl 5.6x+5.8x. I take requests. ** The Third rule of perl club is a statement of fact: pod is sexy. |
|
|---|