Wednesday, March 27, 2013

a Perl module on CPAN for dealing with ZIP archives: IO::Compress::Zip

IO::Compress::Zip - Write zip files/buffers - metacpan.org

I found code, that makes use of this module. The 1st problem, I had to deal with: the file to be written into the ZIP archive and the ZIP archive both get named using absolute pathnames. That's alright for the ZIP archive, but you usually don't like archive members with absolute pathnames. The manual page describes, which feature deals with this ("FilterName"), and it also gives a nice and short recipe.

No comments: