Click here to get back home

Archive::Tar and how to handle *.bz2 archives?

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Archive::Tar and how to handle *.bz2 archives? Jari Aalto 09-13-2005
Posted by Jari Aalto on September 13, 2005, 3:18 pm
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?

Jari

--
Use Licenses! http://www.linuxjournal.com/article.php?sid=6225
Which Licence? http://www.linuxjournal.com/article.php?sid=4825
OSI Licences http://www.opensource.org/licenses/


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




Similar ThreadsPosted
Module to read dar ("disk archive") archives ? May 11, 2005, 3:50 pm
Tie::Handle::CSV Help... July 23, 2006, 2:00 pm
Tie::Handle::CSV and newlines February 1, 2007, 1:47 am
help on how to use PERL to do a "postmessage" to a windows handle January 16, 2005, 12:10 pm
XML::Simple doesn't handle shorthand notation?? January 19, 2005, 6:09 am
Handle multiple input date formats? September 11, 2004, 11:56 am
HTML::Mason handle nonexistent directories June 14, 2005, 12:45 pm
Need to handle the NNTP connection timeout in my code February 8, 2007, 4:51 am
Archive::Tar August 14, 2004, 9:41 am
How can I make HTTP::Request handle gzipped content? September 3, 2004, 2:11 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap