The Archive::Zip documentation shows how to save a ZIP file to a given filename:
# Save the Zip file unless ( $zip->writeToFileNamed('someZip.zip') == AZ_OK ) { die 'write error'; }
The temp filename should be created through File::Temp:
my ($tempfile, $name) = tempfile(); close $tempfile;
In reply to Re^3: Trouble emailing zip file
by Corion
in thread Trouble emailing zip file
by TonyNY
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |