Hi Guru's

I have been looking into the Compress:Zlib module, and the compression/decompression of the logs works great, however, I need to report on extended statistics of the completed gzip'd file.

What I mean is this, with the gzip utility you can get a "long listing" report on the statistics within the compressed file, eg:

gzip -lv pook.log.gz | tail +2 defla 3ddb5103 Aug 16 15:28 26203165 52428800 50.0% pook.log

Is there any way that I could possibly get the same details from the Compress::Zlib module, rather than spawning a system command for a "gzip -l" after using the module to compress the log file.

I have looked at the documentation for Compress:Zlib, but there does not appear to be any variables that return these details (i may be blind though). If anyone knows of a module that may extract this info from the gzip'd file please could you let me know. Any pointers would be greatky apperciated.

Thanks
Asgaroth

In reply to Compress::Zlib or equivilent by Asgaroth

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.