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

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1738304158, '13.58.191.60', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/Perl/modules/IO/Compress/Zip/index(55): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78