Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: $zip->addFile not working.

by tadamec (Beadle)
on Jun 04, 2004 at 22:53 UTC ( [id://361251]=note: print w/replies, xml ) Need Help??


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?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://361251]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2024-04-20 03:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found