Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re: Unzipping a file perl

by LanX (Bishop)
on Dec 27, 2012 at 04:18 UTC ( #1010443=note: print w/replies, xml ) Need Help??

in reply to Unzipping a file perl

Re: Using perl script unzip the zip files

searching helps!

Cheers Rolf

Replies are listed 'Best First'.
Re^2: Unzipping a file perl
by gideondsouza (Pilgrim) on Dec 27, 2012 at 05:53 UTC
    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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1010443]
[virtualsue]: 1nickt thatch repair just finishing

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2017-11-21 12:21 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (299 votes). Check out past polls.