my $zip = Archive::Zip->new('somefile.zip');
####
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}
.
Archive::Zip::tempFile( [$tmpdir] )
Create a uniquely named temp file. It will be returned open for read/write. If $tmpdir is given, it is used as the name of a directory to create the file in. If not given, creates the file in the first directory found in this list:
/tmp
$ENV{TMPDIR}
$ENV{TEMP}
####
my $member = "/home/name/www/images/sunset.png";
my $zip = Archive::Zip->new('newfile.zip');
$zip->addMember( $member );