M
mcardeiro
Hi,
I am having problems making a simple zip file using Archive::Zip.
I basically want to take some files and make a zip archive that can be
read by windoze.
Heres my code:
use Archive::Zip qw
ERROR_CODES :CONSTANTS);
my $zip = Archive::Zip->new();
$zip->addFile('/home/eastmail/p.pdf');
$zip->writeToFileNamed( '/home/eastmail/oBoy.zip' );
when I run the script I get no errors and file '/home/eastmail/
oBoy.zip' is created but when I try to open on windows I get an error
that it is not a valid zip.
anybody have experience making zips in perl (the documentation on this
module is not so great).
Mike Cardeiro
I am having problems making a simple zip file using Archive::Zip.
I basically want to take some files and make a zip archive that can be
read by windoze.
Heres my code:
use Archive::Zip qw
my $zip = Archive::Zip->new();
$zip->addFile('/home/eastmail/p.pdf');
$zip->writeToFileNamed( '/home/eastmail/oBoy.zip' );
when I run the script I get no errors and file '/home/eastmail/
oBoy.zip' is created but when I try to open on windows I get an error
that it is not a valid zip.
anybody have experience making zips in perl (the documentation on this
module is not so great).
Mike Cardeiro