Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Unable to untar

by sago (Scribe)
on Jun 27, 2007 at 11:41 UTC ( #623593=note: print w/replies, xml ) Need Help??


in reply to Unable to untar


Try this.,

If suppose there is a tar file by name "files_test.tar" in desktop and you want to untar them,see the below code..it worked fine for me.

use Archive::Tar;
chdir("C:/Documents and Settings/John_Kinn/Desktop");
my $tar = Archive::Tar->new;
$tar->read("files_test.tar", 1);
my @files = $tar->list_files();
print "I can see @files in th specified location.\n";
$tar->extract(@files);
print "The files are untared\n";

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://623593]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2019-06-25 19:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Is there a future for codeless software?



    Results (107 votes). Check out past polls.

    Notices?