It looks like
should do what you want.$zip->addFile($file_name)->desiredCompressionLevel(0);
PS Also, in wanted you aren't checking if you have found file or directory, and that may be the reason why addFile returns undef. Add something like
in the beginning of wantedreturn unless -f $File::Find::name;
In reply to Re: Archive::Zip changing compression on the fly
by zwon
in thread Archive::Zip changing compression on the fly
by cormanaz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |