fionbarr has asked for the wisdom of the Perl Monks concerning the following question:
I am trying:
and getting:my $zip = Archive::Zip->new(); $zip->addFile($renamed_file)->desiredCompressionLevel(0); if( $zip->writeToFileNamed($zip_filename) != AZ_OK ) { print "wr +ite error...$!"; } print "Added $renamed_file to $zip_filename\n"; }
Can't call method "desiredCompressionLevel" on an undefined value at / +home/fds/lang/perl/fdsPerl-20100809/lib/site_perl/5.12.1/Archive/Zip/ +Archive.pm line 249. at /home/fds/lang/perl/fdsPerl-20100809/lib/site_perl/5.12.1/Archive/ +Zip/Archive.pm line 249 Archive::Zip::Archive::addFile('Archive::Zip::Archive=HASH(0x1 +49ff318)', 'vm.don') called at ve.pl line 75
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: problem with Archive::Zip
by Utilitarian (Vicar) on Aug 09, 2010 at 12:06 UTC | |
by fionbarr (Friar) on Aug 09, 2010 at 12:13 UTC | |
Re: problem with Archive::Zip
by almut (Canon) on Aug 09, 2010 at 12:01 UTC | |
by jpfisher (Initiate) on Feb 28, 2019 at 18:59 UTC | |
Re: problem with Archive::Zip
by talexb (Chancellor) on Aug 09, 2010 at 18:28 UTC | |
Re: problem with Archive::Zip
by Khen1950fx (Canon) on Aug 10, 2010 at 10:47 UTC |
Back to
Seekers of Perl Wisdom