Compress::Zlib inflateInit help

Greetings. I'm using Compress::Zlib for the first time. I'm working with strings are are ZLib-compressed but not fully RFC1950 compliant. I'm getting some errors and, although I have it working, I know there has to be a better way. I started pretty simple: my ($inflate,$status); ($inflate,$status) = inflateInit();