Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Zipping Files

by RhetTbull (Curate)
on Sep 26, 2001 at 20:01 UTC ( #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
Node Status?
node history
Node Type: note [id://114842]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (11)
As of 2021-04-15 18:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?