in reply to How to read multiple files from multiple zip archive.

Hi Mjpaddy,

Did you read the documentation? In particular the extractMember method sounds like what you want. Did you search for existing example code? For example, there's Re: Unzipping files using Archive::Zip.

Hope this helps,
-- Hauke D

Replies are listed 'Best First'.
Re^2: How to read multiple files from multiple zip archive.
by Mjpaddy (Acolyte) on Dec 19, 2016 at 12:47 UTC

    Hi Hauke,

    Thanks for replying. Yes I read documentation and I search lots of code for it but my issue is not to extract the member the issue is apply condition on member name and read all its content and write it into output file

    Complexity level is looping, because I need to read 4 directory and each directory has 4 zip files and each zip file has 2 files (.txt & .doc) and I need to read all .txt file and write into output.txt

      Hi Mjpaddy,

      So what code have you tried?

      For getting a list of files, glob may be helpful. And the Archive::Zip documentation says: "One can use Archive::Zip::MemberRead to read the zip file archive members as if they were files."

      Regards,
      -- Hauke D