Search notes:

Perl module IO::Compress::Zip

use warnings;
use strict;

use IO::Compress::Zip qw(:all);

use File::Spec::Functions 'tmpdir';

my $dest_file = tmpdir() . 'io-compress.zip';

zip [ 'README.md', 'script.pl' ] => $dest_file or die "Could not write $dest_file ($ZipError)";

print "$dest_file written";
Github repository PerlModules, path: /IO/Compress/Zip/script.pl

See also

Perl modules IO::Compress::Gzip, IO::Compress::Zip IO::Uncompress::Gunzip, Archive::Zip
Zip files
The shell command zip.

Index