in reply to error : desiredCompressionLevel

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.