I have answered this question a couple of years ago on stackoverflow.com:
The Perl API provides PerlIO_exportFILE() which can convert a PerlIO handle with a file descriptor to a stdio `FILE` pointer. Since PerlIO::Scalar is an "in-memory" file handle without a file descriptor the conversion cannot succeed. The only portable way to pass a `PerlIO::Scalar` handle would be to flush it to a temporary file. The less portable way would be to use a stdio that supports callbacks, like the BSD implementation, funopen(3)
-- chansenIn reply to Re: XSub won't write to memory file
by Hansen
in thread XSub won't write to memory file
by syphilis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |