It looks like $zip isn't being created.
Try changing:
my $zip = Archive::Zip->new();to:
my $zip; eval { $zip=Archive::Zip->new(); } or die $@
That should provide an error message if Archive::Zip is running into problems.
Update: $! is the os_error flag. My bad. Changed to eval{} as suggested by jZed.
In reply to Re: $zip->addFile not working.
by tadamec
in thread $zip->addFile not working.
by heigold1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |