Click here to get back home

Archive::Tar

 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 Jim Schueler 08-14-2004
Posted by Jim Schueler on August 14, 2004, 9:41 am
Please log in for more thread options
Sample Code:

$a = new Archive::Tar ;
$a->add_files( 'images/kids.gif' ) ;
@files = $a->list_files() ; ## $files[0] is 'kids.gif'
chdir '/tmp' ;
$a->extract() ; ## writes new file 'kids.gif'


Second sample code:
$a = new Archive::Tar ;
$a->add_files( 'images/kids.gif' ) ;
$a->write( '/tmp/kids.tar' ) ;

$b = new Archive::Tar ;
$b->read( '/tmp/kids.tar' ) ;
@files = $b->list_files() ; ## $files[0] is 'images/kids.gif'
chdir '/tmp/ ;
$b->extract() ; ## creates subdirectory 'images'
## writes file 'images/kids.gif'


It's not obvious that this inconsistent behavior is useful. Am I the
first person to try to use this module for bulk directory copying?


Similar ThreadsPosted
[ANN] Archive::Zip 1.12 released July 12, 2004, 8:21 pm
Archive::Tar on win32 September 16, 2004, 8:40 am
[ANN] Archive::Zip 1.14 released October 22, 2004, 4:04 pm
[ANN] Archive::Zip 1.14 released October 22, 2004, 11:03 pm
Archive::Zip problem July 3, 2006, 5:25 am
Using Archive::Zip extractTree(); January 2, 2007, 4:33 pm
Archive::Tar fails tests on AIX August 17, 2004, 6:30 pm
ANNOUNCE: Archive::Zip 1.13 released August 23, 2004, 4:49 pm
Archive::Zip missing pod2man? September 12, 2004, 7:33 pm
Archive::Tar and how to handle *.bz2 archives? September 13, 2005, 3:18 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap