----- Original Message ----- From: "Joe Landman" . . > > The major issue appears to be that I need to return an int, or an SV*.
Perl's typemap can handle much more than that - including array references (AV*). See ExtUtils/typemap. I'm trying to think of a good resource that demonstrates the creation and return of AV*'s ... maybe you can work it out from 'perldoc perlapi' - especially those functions that contain the string "av". Peruse the cookbook, too. See how you get on :-) Cheers, Rob