Skip to content

Documentation Issues #2

Closed
Closed
@gitcnd

Description

@gitcnd

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)

Metadata

Metadata

Assignees

Labels

documentationDocumentation issuezipIssues regarding zip

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions