in reply to Re^6: Archive::ZIP - Zip selection of files
in thread Archive::ZIP - Zip selection of files

Your program as shown still contains the line:

@files = $zip->addTree( "$zippath" );

This will always add all files.

Replies are listed 'Best First'.
Re^8: Archive::ZIP - Zip selection of files
by gmaniac (Initiate) on Apr 10, 2015 at 10:32 UTC
    Well, if this is the case, I have to find another solution to fill my array. Thank you!

      Note that you immediately overwrite your array @files after your call to ->addTree() anyway. Maybe now is a good moment to review your program logic and where what variable gets initialized with which values.

        Thank you. I've managed to do it finally.