in reply to IO::Compress::Gzip blank output

You may want to check the return value from IO::Compress::Gzip::gzip and maybe $! and $@.
Personally, I prefer Compress::Zlib which is also doing Gzip, but this shouldn't make any differenct for your problem.