Jun 30, 2011, 4:53 AM
Post #9 of 16
It is true that the documentation does not say anything about signalling an error within new() via the returned value. It is just good practice to check the returned reference for being defined.
Re: [timark] Problem using Archive::Zip. n00b looking for assistance
[In reply to]
the code runs and creates 2 zip archives but they are empty
Well, this is the FIRST time you are mentioning this, and in fact in contradicts your very first posting, where you had written:
I am unable to create the .zip or write it.
So, in your first posting, you claimed that you could not create the zip file, while in your last posting, you said you could create it (though it is empty)!
How can one reasonably help you, if you don't even describe the problem in an understandable way????
I suggest you go back to square one: Describe exactly your problem (i.e. what you get, as opposed to what you want to get), post your code (with error checking!), and then we can try to find out what is going wrong....