Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Zipping Files

by RhetTbull (Curate)
on Sep 26, 2001 at 20:01 UTC ( [id://114842]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/bin/perl -w
    
    ...
    my $zip = Archive::Zip->new();
    my $member = $zip->addFile('t.out');
    die 'Error writing file' if $zip->writeToFileNamed('foo.zip') != AZ_OK
    +;
    
  2. or download this
    #!/bin/perl -w
    
    ...
    #do your stuff here
    #everything written to FOO gets compressed and stored in foo.gz
    print FILE "hello world\n";
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-23 23:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found