Help for this page

Select Code to Download


  1. or download this
    my $zip = Archive::Zip->new('somefile.zip');
    
  2. or download this
    Archive::Zip::tempName( [$tmpdir] ) 
    Create a unique name for a temp file, in the given directory or in the
    + first one of:
    ...
        /tmp
        $ENV{TMPDIR}
        $ENV{TEMP}
    
  3. or download this
    my $member = "/home/name/www/images/sunset.png";
    
    my $zip = Archive::Zip->new('newfile.zip');
    $zip->addMember( $member );