I tried to use Archive::Zip because it has a PPD file for Perl 5.8
The reason this won't work is because Archive::Zip is for working with ZIP files in PKWare format, the same as pkzip and pkunzip or info-zip. .gz is an entirely different, unrelated type of file. (Both filetypes involve compression, but for that matter so do .arj and .lzh, neither of which you can open with either Archive::Zip nor Compress::Zlib.)
BTW, I usually extract this file using Winzip or Winrar
The standard program to use for extracting these is gunzip, which comes with gzip. However, don't confuse this product with pkzip -- they both have the letters "z", "i", and "p" in their names, but they don't handle the same format. (The word "zip" is pretty heavily overloaded in computer software circles. Other apps that use this word include Mark Howell's Zip (which is a z-machine emulator; Frotz and WinFrotz are derived from it), jzip and XZip and MaxZip (other z-machine emulators derived from Zip), 7zip (another compression program that also has its own archive format that neither pkzip nor gzip can open), and ZipExpress (which has to do with postal codes). I think in the 80s there was some modem software for DOS that used the word "Zip" in its name, but I don't recall the precise details. Anyway, those are just the ones I could list off rather quickly; there are many more. Basically, the word "zip" doesn't necessarily imply compatibility with PKZip, and gzip in particular is not compatible with it but has a completely different format.) If WinZip handles both, that's because its creators have deliberately chosen to program support for both.
As others have pointed out, the most common Perl module for working with gzip format is Compress::Zlib. If you can't find a PPM of that, you may be interested in Compress::Zlib::Perl, a pure-Perl implementation. (A pure Perl implementation can be installed simply by copying the .pm file into any directory listed in @INC, so you don't need to have CPAN.pm working to install it (although sooner or later you're probably going to want a working CPAN.pm for some other reason).)
In reply to Re: How to Unzip *.gz files
by jonadab
in thread How to Unzip *.gz files
by vegasjoe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |