Have you considered what ->addTree is actually doing? It is not a function that purely returns information.
I think you should rethink your approach and consider getting two lists, one list of the files in the archive and one list of the files not in the archive, then eliminate the members in both lists (see perlfaq4) and then add the appropriate number of remaining files to the archive.
In reply to Re^5: Archive::ZIP - Zip selection of files
by Corion
in thread Archive::ZIP - Zip selection of files
by gmaniac
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |