in reply to $zip->addFile not working.

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.

Replies are listed 'Best First'.
Re^2: $zip->addFile not working.
by heigold1 (Acolyte) on Jun 04, 2004 at 22:59 UTC
    Hi Tadamec, I tried this already but I can tell by my personal log file that it executes this statement o.k. and keeps on processing. Any other ideas?