Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

error : desiredCompressionLevel

by premsimha (Initiate)
on Jul 12, 2012 at 10:46 UTC ( #981364=perlquestion: print w/replies, xml ) Need Help??

premsimha has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks,

I'm new to perl I am running my perl script to write data into Openoffice spreadsheet using the cpan module OpenOffice::OODoc , and also tried with OpenOffice::OOCBuilder , But it is throwing error :

Can't call method "desiredCompressionLevel" on an undefined value at /usr/local/share/perl/5.10.1/Archive/Zip/ line 249.

Archive::Zip module is up to date. Please any monks help me to solve this issue

Replies are listed 'Best First'.
Re: error : desiredCompressionLevel
by Anonymous Monk on Jul 12, 2012 at 11:30 UTC
Re: error : desiredCompressionLevel
by xyzzy (Pilgrim) on Jul 12, 2012 at 13:22 UTC

    Either you're not using the module correctly, or an assignment failed silently somewhere, or something else. Post as much code as you can and the whole error message too. You also might want to check every step for errors with something like ... or die "wtf? $!;" on lines that potentially could be failing. Or use the interactive debugger.

    $,=qq.\n.;print q.\/\/____\/.,q./\ \ / / \\.,q.    /_/__.,q..
    Happy, sober, smart: pick two.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2021-05-14 17:14 GMT
Find Nodes?
    Voting Booth?
    Perl 7 will be out ...

    Results (150 votes). Check out past polls.