|
Posted by Sisyphus on September 14, 2005, 8:34 am
Please log in for more thread options
>
> [Please retain CC if you reply]
>
> What is are the modules to work efficiently with archives
> that used bzip2 compression?
>
> foo-1.1-tar.bz2
>
> There seem to be CPAN modules
>
> Compress::Bzip2
> File::Archive
> Archive::Tar
>
> But the integration of these to handle bz2 archives is not mentioned.
> Could someone point me to example code or further ideas?
>
Afaik Archive::Tar doesn't handle bz2 archives. So you'll have to use
Compress::Bzip2 to handle the compression/decompression, and Archive::Tar to
handle the tarring/untarring.
The test scripts that come with the source of both modules should contain
code that you'll find helpful. And there's also 'perldoc Archive::Tar' and
'perldoc Compress::Bzip2'.
Cheers,
Rob
|