Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

problem with Archive::Zip

by fionbarr (Pilgrim)
on Aug 09, 2010 at 11:55 UTC ( #853788=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      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";
    }
    
  2. or download this
    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
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://853788]
Approved by almut
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (16)
As of 2015-07-07 20:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (93 votes), past polls