Right, Archive::Zip's job is to handle zip files, not delete things. But fortunately there is a core module that will make the deletion trivial:
use File::Path qw/remove_tree/; remove_tree(@paths);
Where @paths are the paths/files you included in your Archive::Zip.
See File::Path for more information, including a description of error handling.
In reply to Re: archive::zip how to delete files after creating the zip.
by rjt
in thread archive::zip how to delete files after creating the zip.
by chandru210486
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |