Welcome to the Monastery | |
PerlMonks |
Re: $zip->addFile not working.by arden (Curate) |
on Jun 04, 2004 at 22:38 UTC ( [id://361243]=note: print w/replies, xml ) | Need Help?? |
change the last line to $zip->addFile($fileWithPath) != AZ_OK || die "couldn't add $fileWithPath\n";
The single quotes are preventing the variable from being interpretted. Also, the author uses the AZ_OK constants for status. . . - - arden. update: Of course, I meant in your code, not in your post! Also added the AZ_OK info.
In Section
Seekers of Perl Wisdom
|
|