Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: Unzipping a file perl

by gideondsouza (Pilgrim)
on Dec 27, 2012 at 05:53 UTC ( #1010447=note: print w/ replies, xml ) Need Help??


in reply to Re: Unzipping a file perl
in thread Unzipping a file perl

Yes googling goes a long way. You could use Archive::Extract if your aim is to only extract files. You code would look like this:

use Archive::Extract; ### build an Archive::Extract object ### my $ae = Archive::Extract->new( archive => 'foo.tgz' ); ### extract to /tmp directory ### my $ok = $ae->extract( to => '/tmp' ) or die $ae->error; ### get files from the archive ### my $files = $ae->files;

If you're doing more than just extraction then look at Archive::Zip


Comment on Re^2: Unzipping a file perl
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (11)
As of 2015-07-03 10:47 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 (51 votes), past polls