in reply to Re^4: perl XS - passing array to C and getting it back
in thread perl XS - passing array to C and getting it back

I can't use inline at all.

That's why I posted the .xs file generated by Inline::C. You'll need to grab Inline.h from the package and then the XS code I posted should compile directly.

Of course, if you can compile XS code, there is no rational reason why you cannot use Inline::C; but if you prefer not to that's your choice.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". I knew I was on the right track :)
In the absence of evidence, opinion is indistinguishable from prejudice.
  • Comment on Re^5: perl XS - passing array to C and getting it back