http://qs1969.pair.com?node_id=269123


in reply to Passing Array through SWIG?

I saw it done a few years ago, but the person who did it had to hack up Swig pretty heavily to add the support (and wound up cursing at some of the obvious stupidity. Those patches were not contributed back.

I don't know whether it has improved since then, but my recommend would be that if you don't have existing code, you want to use XS or Inline instead of Swig.

Furthermore if you are trying to learn your way around interfacing C and Perl, the definitive reference is Embedding and Extending Perl.