in reply to Office file becomes corrupt once extracted from gz

Is there a binmode flag for either of those unzip modules? Also, is there the possibility that the files were corrupted on compession instead (again, see binmode)?

--MidLifeXis

  • Comment on Re: Office file becomes corrupt once extracted from gz

Replies are listed 'Best First'.
Re^2: Office file becomes corrupt once extracted from gz
by tone (Novice) on Oct 23, 2008 at 08:50 UTC

    I can't believe I didn't think of binmode. I searched the docs and I found that IO::Uncompress::Gunzip has a binmode so I enabled that and now the files are getting extracted perfectly.

    Thanks for your help.