No such thing as a small change | |
PerlMonks |
Re: $zip->addFile not working.by ChemBoy (Priest) |
on Jun 04, 2004 at 22:50 UTC ( [id://361248]=note: print w/replies, xml ) | Need Help?? |
The error message indicates that $zip, not $fileWithPath, is your problem (that being the object you are attempting to call the method on, while $fileWithPath is the parameter you're trying to pass to the method). Without looking at the Archive::Zip documentation, I'd suggest changing your earlier code to
which should tell you what went wrong, assuming Archive::Zip::new is kind enough to set the error message when it fails. If God had meant us to fly, he would *never* have given us the railroads. --Michael Flanders
In Section
Seekers of Perl Wisdom
|
|