Hi, I am use embed Perl in c to execute Perl script using perlembed. I have a large c array (double), which I want to pass into a Perl script for processing. Currently I have to create a AV* and pass reference to Perl:
double d[100000];
AV* a = newAV();
for(i=0;i<len;i++)
av_push(a, newSVnv(d[i]));
The problem with this, I think, is I have copied whole array. So my question is: is there a way to pass the array directly to Perl without coping?
Thanks