troubleshooting Question

Archive::Zip Compression Level Undefined Error

Avatar of Bob-Villa
Bob-Villa asked on
Scripting LanguagesPerl
2 Comments1 Solution3040 ViewsLast Modified:
Can't call method "desiredCompressionLevel" on an undefined value at /usr/lib/perl5/site_perl/5.8.8/Archive/Zip/Archive.pm line 249.

I have no idea why this is happening.

CODE####


use Archive::Zip;
my $OBJ = Archive::Zip->new();  
for (1..10) {
  my $FILE="/temp/".$_.".zip";
  $OBJ->addFile($FILE);
  }
$OBJ->writeToFileNamed('/temp/zipofzips.zip')
ASKER CERTIFIED SOLUTION
Nem Schlecht
IT Engineering Manager

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Top Expert 2009

The Distinguished Expert awards are presented to the top veteran and rookie experts to earn the most points in the top 50 topics.

Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros