Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: Archive::Tar extract

by gautamparimoo (Beadle)
on Apr 17, 2012 at 10:43 UTC ( #965484=note: print w/ replies, xml ) Need Help??


in reply to Re: Archive::Tar extract
in thread Archive::Tar extract

I am doing what is written in the documentation , ie extract archive files one by one to specified location but it is not writing to the specified location


Comment on Re^2: Archive::Tar extract
Replies are listed 'Best First'.
Re^3: Archive::Tar extract
by Mr. Muskrat (Abbot) on Apr 17, 2012 at 16:53 UTC

    No, you are not doing what is written in the documentation. DrHyde is correct.

    The documentation shows: $tar->extract_file( 'name/in/archive', 'name/i/want/to/give/it' );

    Your code has this line though: $tar->extract_file($file, "C:/extract/$input"); # Extract $file to "C:/extract/libpst.tar.gz"

    If you change it to the following it might work better: $tar->extract_file($file, "C:/extract"); # Extract $file to "C:/extract"

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2015-07-28 06:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (252 votes), past polls