Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

pure-perl gzip compression

by hackmare (Pilgrim)
on Oct 12, 2001 at 02:47 UTC ( [id://118361]=perlquestion: print w/replies, xml ) Need Help??

hackmare has asked for the wisdom of the Perl Monks concerning the following question:

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

Replies are listed 'Best First'.
Re: pure-perl gzip compression
by LD2 (Curate) on Oct 12, 2001 at 06:23 UTC
    I don't think that there is a solution out there yet(although I could be wrong.. ). But, I think you'd be interested in following this thread.
      Thanks. I'll send them an email to see where they are with their module.

      Update

      I've contacted the members of the thread above, and it turns out that the effort to put out a pure-perl gzip library is dead. However, I had some luck and someone sent me the sources for a some pure-perl compression (but not zip-format).

      Ronan

Re: pure-perl gzip compression
by thatguy (Parson) on Oct 12, 2001 at 03:33 UTC
    Compress::Zlib and IO::Filter will do compression/decompression but are not (as stefp points out) perl only modules and it looks to me like everything invloving zip or compress on cpan uses Compress::Zlib (PerlIO::gzip, MIME::Decoder::Gzip64, IO::Filter::gunzip, Archive::Zip)

    here is the rfc on the gzip spec if you feel like writing a non Compress::Zlib module.
    -p

      Compress::Zlib is not a perl only module.

      -- stefp

Re: pure-perl gzip compression
by rurban (Scribe) on Apr 05, 2013 at 01:17 UTC
Re: pure-perl gzip compression
by hawtin (Prior) on Nov 07, 2002 at 18:40 UTC
    When I was idly scanning old files I came across this it is a pure Perl compression module, even if it is not gzip and was created quite some time ago. I've never used it but thought you might be interested.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://118361]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (12)
As of 2024-04-23 14:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found