I would like to use the Compress::ZLib library for all the files.
Sorry, no can do. As you may know, Compress::Zlib is not much more than an interface to the Zlib library. I found this entry in the ZLib FAQ:
13. Can zlib handle .Z files?
No, sorry. You have to spawn an uncompress or gunzip subprocess, or adapt the code of uncompress on your own.
The reason for this is indeed most likely as sauoq wrote: copyright and licencing problems. The main reason Zlib was written, is precisely to circumvent this kind of problems, by offering a free alternative to do compression. Unfortunately this implies that it can't be compatible with that what it tries to substitute.

From this Zlib FAQ entry, I would deduce that it's not illegal to write and use a program that is compatible with compress, but you cannot distribute it without a licence, not even for free, and a licence would cost you a lot of money.

So, don't set your hopes too high on somebody writing such a Perl module.


In reply to Re: uncompressing a foo.Z file by bart
in thread uncompressing a foo.Z file by lostcause

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.