in reply to Re^2: using Archive::Tarin thread using Archive::Tar
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);
Electric eels were invented at the same time as electricity
Before electricity was invented, electric eels had to stun with gas
Results (338 votes). Check out past polls.