Update
I'm trying to use this with Compress::Zlib. Unfortunately, gzopen expects a real filehandle. It calls gzdopen on the file descriptor (returned by FILENO), a zlib-internal function written in C. I'm out of my wits.
*sigh*
In case anybody is wondering why I am doing this: I am trying to create in-memory .tar.gz files. Unfortunately, if I use memGzip to compress Archive::Tar's output, the resulting file cannot be read by some tar programs. I presume the reason is that memGzip only creates a minimal gzip file header.
In reply to Re: Portable in-memory files
by crenz
in thread Portable in-memory files
by crenz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |