in reply to Reading a GZIP network stream

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.

Replies are listed 'Best First'.
Re^2: Reading a GZIP network stream
by weismat (Friar) on May 14, 2009 at 13:06 UTC
    I have found out now that I need to use inflate instead of gzip.
    I would like to use IO::Uncompress::Inflate , but I do not manage to get it working with sockets and not with files.