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 adjectives, with the addition of inflectional endings, a changeable long vowel (Qamets or Tsere) in an open, propretonic syllable will reduce to Vocal Shewa. This type of change occurs when the open, pretonic syllable of the masculine singular adjective becomes propretonic with the addition of inflectional endings."  — Pratico & Van Pelt, BBHG, p68

In reply to Re: How to Unzip *.gz files by jonadab
in thread How to Unzip *.gz files by vegasjoe

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.