Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Compress zlib and friends

by monkey_boy (Priest)
on Jul 15, 2005 at 09:25 UTC ( #475151=note: print w/replies, xml ) Need Help??


in reply to Compress zlib and friends

I'm not familiar with that module, but i like to use PerlIO::gzip,
It uses the gzip format, but can transparently be used for reading & writing files.
e.g:
use PerlIO::gzip; open( my $fh , ">:gzip", "file.txt.gz") || die $!; print $fh "hello!\n"; close($fh); open( my $fh2 , "<:gzip", "file.txt.gz") || die $!; print <$fh2>; close($fh2);

I've never tried it on windows, but it doesnt mention any caveats in the docs.
Of course, if this isnt installed on your server, it may be of no use at all!


This is not a Signature...

Replies are listed 'Best First'.
Re^2: Compress zlib and friends
by blazar (Canon) on Jul 15, 2005 at 10:31 UTC
    I'm not familiar with that module, but i like to use PerlIO::gzip
    Sounds like a great module to know about. It would be nice if eventually this made into a core layer...

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2021-10-25 05:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (89 votes). Check out past polls.

    Notices?