Closed
Description
There's no example showing how to use this as a stream filter (glaring omission, this being the purpose of the module!).
There's no example showing how to use [,OPTS] either - very confusing.
How does a stream get a filename? How are normal everyday users supposed to unzip files that have no name?
You probably want to add something like this, after you modify the below to put a filename (I suggest "output.csv") into the zip:-
echo mydata,tostore | perl -MIO::Compress::Zip -e 'IO::Compress::Zip::zip \*STDIN=>\*STDOUT,AutoClose=>1; ' >output.zip
The above, FYI, does:-
# unzip -l output.zip
Archive: output.zip
Length Date Time Name
-------- ---- ---- ----
15 07-06-19 21:56
-------- -------
15 1 file
(Note the missing name)