|We don't bite newbies here... much
Decoding .z and .gz filesby blackadder (Hermit)
|on Mar 26, 2007 at 10:59 UTC
blackadder has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to decode compressed files mainly of .gz and .z types!
To start off with I wrote this scripts to handle .gz file;
which works fine on the ".gz" but it can't handle ".z" files!
I tried Archive::Zip to no avail!
I began to look around here for posts that have delt with similar issues. The advice I got (tho it seems) that I should be using Comprees::Zlib. So I tried the following bit of code just to test, however its didn't work (i.e. it returned noise - exaclty similar to opening any binary file with a basic text editor)!
Can someone please help me out or shed a light on what I need to do in order to extract files from .z files?