in reply to XSub won't write to memory file
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)
-- chansen
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: XSub won't write to memory file
by syphilis (Archbishop) on Jul 10, 2015 at 11:20 UTC |