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

Re^3: using Archive::Tar

by ansh batra (Friar)
on Oct 05, 2011 at 07:21 UTC ( #929722=note: print w/replies, xml ) Need Help??

in reply to Re^2: using Archive::Tar
in thread using Archive::Tar

what shall i do when i want to compress a FILE to .gz only? please reply asap!!!

Replies are listed 'Best First'.
Re^4: using Archive::Tar
by Tux (Abbot) on Oct 05, 2011 at 08:17 UTC

    For compressing a single file, why use perl? You could use gzip on the command line.

    If it needs to be in perl, look at Compress::Zlib. The manual has lots of info about gzip support.

    $dest = Compress::Zlib::memGzip ($buffer); $dest = Compress::Zlib::memGunzip ($buffer);

    Enjoy, Have FUN! H.Merijn

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://929722]
[LanX]: choroba: GREAT JOKE! xD
LanX starts googling the punch line ...
[choroba]: suddenly, a weird noise can be heard, and the conductor stops them
[choroba]: (sorry, was interrupted by a call)
[choroba]: What was that? asks he
[choroba]: and the triangle player says, "That was me. It's written here in the score"
[choroba]: and shows a bar with a note "ohne Triangel"
[choroba]: where "ohne" means "will bend" in Czech

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (12)
As of 2017-03-27 11:54 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (319 votes). Check out past polls.