Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

how to extract files from '.zip' archive

by veeruch (Sexton)
on Aug 30, 2006 at 05:02 UTC ( [id://570308]=perlquestion: print w/replies, xml ) Need Help??

veeruch has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: how to extract files from '.zip' archive
by ercparker (Hermit) on Aug 30, 2006 at 05:46 UTC
    when you call:
    $zip->extractTree('E:\test\unzip\' );
    The members in the zip will need to match
    'E:\test\unzip\'
    for example if you call extractTree without any arguments it will extract all files from the zip with their original names. please read the documentation here: Archive::Zip
Re: how to extract files from '.zip' archive
by imp (Priest) on Aug 30, 2006 at 05:35 UTC
    In the future please provide details about how the failure manifests itself. Does the script fail silently, or is there an error generated?

    Also, please verify that the example code is runnable before posting. The provided code does not close the double quotes on the last line, and has a syntax error on the following line due to an escaped single quote:

    $zip->extractTree('E:\test\unzip\' );

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://570308]
Approved by GrandFather
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-04-18 03:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found