in reply to Reading a GZIP network stream
What result do you get if you change the last line into:
? It appears, your script tries to uncompress an undefined scalar.$chall = Compress::Zlib::uncompress($temp); # ...($chall) -> ...($temp +)
HTH, but if it works it is only the first step. See comment by lostjimmy.