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

Hello Monks,

I am pretty newbie to Perl. I studied how to zip a file using Archive::Zip, but I am unable to create a zip file which should contain many files... For example I have a folder which contains 20 XML files and 15 CSV files.. I want to zip all these into one .zip file(pls note that I don't want to zip the entire folder, the folder contains some other files too which I don't want! also, I dont want to take all the necessary files to another New Folder and Zip that folder!). Is it possible. Any thoughts dear Monks?

  • Comment on Zipping many files into one .zip file using Archive::Zip

Replies are listed 'Best First'.
Re: Zipping many files into one .zip file using Archive::Zip
by Anonymous Monk on Mar 06, 2014 at 03:04 UTC

    Is it possible. Any thoughts dear Monks?

    yes, it is possible, and its even documented in Archive::Zip and exampled

    My advice, stop studying and do some copy/pasting of the examples, its FAQ