Billy N. Patton writes:
>   RETVAL = NULL; 
> ...
>     if (ok)
>     {
>       if (RETVAL EQ NULL) RETVAL =  newAV();

(What's EQ?) You need to return a reference to an array, not
the array itself. The return type of your xsub function should
be SV *. Then just use newRV to build a reference to the
array and assign RETVAL the reference, not the array.

Once you get it working, I suspect you'll be back with another
round of questions on ref counts. ;)

- Ken

-- 
Ken Fox, [EMAIL PROTECTED], (313)59-44794
------------------------------------------------------------------------
Ford Motor Company, Powertrain           | "Is this some sort of trick
Analytical Powertrain Methods Department |  question or what?" -- Calvin
C3P Implementation Section               |

Reply via email to