Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Zip Enlightenment

by idsfa (Vicar)
on Jan 21, 2005 at 21:44 UTC ( [id://424142]=note: print w/replies, xml ) Need Help??


in reply to Zip Enlightenment

ZIP is not the same as gzip. If you want ZIP files, you should be using Archive::Zip:

use Archive::Zip qw( :ERROR_CODES :CONSTANTS ); my $zip = Archive::Zip->new(); my $member = $zip->addDirectory( 'dirname/' ); $member = $zip->addString( 'This is a test', 'stringMember.txt' ); $member = $zip->addFile( 'xyz.pl', 'AnotherName.pl' ); die 'error' unless $zip->writeToFileNamed('someZip.zip') == AZ_OK;

The FAQ is helpful as well.


The intelligent reader will judge for himself. Without examining the facts fully and fairly, there is no way of knowing whether vox populi is really vox dei, or merely vox asinorum. -- Cyrus H. Gordon

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://424142]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2024-04-19 15:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found