What result do you get if you change the last line into:

$chall = Compress::Zlib::uncompress($temp); # ...($chall) -> ...($temp +)
? It appears, your script tries to uncompress an undefined scalar.

HTH, but if it works it is only the first step. See comment by lostjimmy.


In reply to Re: Reading a GZIP network stream by Perlbotics
in thread Reading a GZIP network stream by weismat

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":