Actually, Archive::Zip uses the compression from Compress::Zlib, which uses a compiled DLL (or equivalent) incorporating the code from the zlib project.

It's noteworthy that one of the people behind this project, is Mark Adler, the man who originally created the zip algorithm for PKZIP, the (original) ZIP utility for DOS. The other one is Jean-loup Gailly, the author/maintainer of gzip. Therefore it's not surprising that zlib (and thus Compress::Zlib) can handle both gz and zip compression.

For the algorithm, there's indeed no better place to start than the zlib homepage. You will have to delve into the C code, as the code itself and its comments, are the actual main documentation.


In reply to Re: Re: ZIP algorithm for perl? by bart
in thread ZIP algorithm for perl? by stonecolddevin

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.