G/Morning, On 10/06/2011 4:36 AM, Josh Goldberg wrote:
Have seen that method in several XS programs (and PerlXSTut iirc) but it is unclear if that works when 3 elements are to be returned; will have a closer look at the Perl XS docs...What I do is something likeAV *results; results = newAV(); .... something = (AV *)SvRV(*other_av_thing); .... av_store(results,i, something); .... RETVAL = results; sv_2mortal((SV *)RETVAL);
Thx, Norm