Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Compress zlib and friends

by monkey_boy (Priest)
on Jul 15, 2005 at 09:25 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2024-04-25 23:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found