Fellow monks,

Does anyone know of a pure-perl implementation of gzipping functionality?

I need to zip a string and send it through a server without relying on the local gzip, zlib, or winzip program.

The application is for gzipping the output stream of a SVG data stream coming from my SVG module on CPAN. If there is a clean, truly perlish way to compress the file as it is being sent, I could incorporate it into the module. Right now, everything I can find seems to have a non-perl dependency. I'm being peculiar and would like the module to remain without non-perl dependencies.

I've found APIs for the above programs on CPAN, but nothing stand-alone that I can access with a pure-perl conscience.

I have a feeling this is going into Bad Territory, but thought I would put the question out to see if I can find luck where I find wisdom.

Yours in ignorance,

Ronan


In reply to pure-perl gzip compression by hackmare

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.