Is it possible to set a temporary zip file for a text or an application file so it kind of compresses itself right before it downloads?
Yes, many ways. It is possible to get httpd to serve files in compressed form for transmission. That is up to the client. You can call zip and unzip with system. Multiple layers of compression are usually a waste of time.
I won't use modules that don't come with the Perl package itself, so that might make it hard...
Indeed. Trade some excess hubris for a little laziness and obtain Archive::Zip. Compress::Zlib is also usable, but more complicated for winders zip files.
With perl 5.8, you could write a PerlIO::via::Zip layer and be a minor demigod.
If you don't want to keep a temporary file, the easiest thing is to unlink it when you are done with it.
After Compline,
Zaxo
In reply to Re: temporary file zipping
by Zaxo
in thread temporary file zipping
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |