I'm not familiar with the module in question; but the first thing I'd suspect when I got an error message like
Can't locate object method "extract" via package "Archive::Zip::Archive" at unzip.pl line 24.
is that there is no such method. Looking through the Archive::Zip documents, I don't see such a method listed anywhere.
Another possibility is that the call to new failed. Here, that's unlikely since $unzip the message tells you what package the method wasn't found in, indicating that unzip was blessed into that package.
A big problem here is that you're churning merrily along in a bunch of places without stopping to see whether you should proceed: before trying to extract anything, you should be trying to read them to see whether they are extractable. This is pointed out in the online docs.
Once you've got those pieces of the puzzle in place, you'll have to make sure you've got that method named correctly; from what I can tell, the module's functions are mostly designed around extracting individual files from an archive, rather than simply decompressing them.
HTH.
Philosophy can be made out of anything. Or less -- Jerry A. Fodor
In reply to Re: extracting self-extracting pkzipped files with Archive::Zip
by arturo
in thread extracting self-extracting pkzipped files with Archive::Zip
by snafu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |