By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,933 Members | 1,676 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,933 IT Pros & Developers. It's quick & easy.

how to unzip with option of ecluding directories in perl

P: 1

i am having problem in doign the following
I havea code snippet which unzips a zip file.
it unzips all contents of the zip file
i want to omit unzipping of certian folders which i might not need.
how can i do it .
I have been using Zip::Extract perl module for achieving funtionality of unzip.

I want a perl module that can be used to achieve all functionalities of Unzip command switches.

unzip command provides a switch -x which can be used to exclude folders that is in the zip file from unzipping.

Thanks in advance for the help.
Jun 15 '10 #1
Share this Question
Share on Google+
2 Replies

P: 80
Where did you got Zip::Extract? I cannot find such module on CPAN.

You can use Archive::Zip. IMHO it can replicate almost all functionality of unzip.
Jun 16 '10 #2

Expert Mod 2.5K+
P: 3,503
I think they meant to put Archive::Extract, not Zip::Extract.
Jun 16 '10 #3

Post your reply

Sign in to post your reply or Sign up for a free account.