in reply to Zip/compress files and directories

Take a look at the docs for Archive::Zip (or Archive::Tar) if you want to make the archive from Perl. If you'd rather wrap an existing tool, then system is a good option.