Hi, I use Archive::Zip to zip up directories for my backups. This works fine, but I would like to have better cmpression rather than the deault 6.
Code:
## works okay
my $zip = Archive::Zip->new();
$zip->addTree("path/to/directory");
$zip->writeToFileNamed("holdzips/$drty.zip");


## I have tried this, but it errors 
## (Can't call method "desiredCompressionLevel"
##  without a package or object reference)
my $zip = Archive::Zip->new();
$zip->addTree("path/to/directory")->desiredCompressionLevel(9);
$zip->writeToFileNamed("holdzips/$drty.zip");
Hope someone can help please - Thanks