in reply to How to pass filehandles from perl to XS?
Try putting this in your XS interface:
Or you can get a file descriptor for any open filehandle using fileno, and pass that (as a simple integer) to your C (or whatever) function, if that's what it needs.char * do_funky_xs_thang( file ) FILE * file
the lowliest monk
|
|---|