Search notes:

Perl module List::Util

use warnings;
use strict;

use List::Util qw(any min max pairmap reduce sum shuffle);
use List::MoreUtils;

print "min: ", min (68, 38, 22, 42, 71, 57)  , "\n";
print "max: ", max (68, 38, 22, 42, 71, 57)  , "\n";
print "sum: ", sum (1, 1, 2, 3, 5, 8, 13, 21), "\n";

# ----

my @words = qw (zero one two three four five six seven eight nine ten);
my @shuffled = shuffle @words;
print join " - ", @shuffled;
print "\n";

# ----

print reduce {"$a - $b"} @words;
# zero - one - two - three - four - five - six - seven - eight - nine - ten
print "\n";

# ---

print "foo exists in list\n"   if any {$_ eq 'foo'  } @words;
print "seven exists in list\n" if any {$_ eq 'seven'} @words;
# seven exists in list

# ---

my @a1 = qw(one   two     three four   );
my @a2 = qw(apple oranges pears bananas);

print join " - ", pairmap {"$a $b"} List::MoreUtils::mesh(@a1, @a2);
# one apple - two oranges - three pears - four bananas
Github repository PerlModules, path: /List/Util/script.pl

See also

StackOverflow: ListUtil.c: loadable library and perl binaries are mismatched (got handshake key 0xde00080, needed 0xce00080)
Perl modules

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...', 1744799176, '3.12.107.192', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/Perl/modules/List/Util/index(76): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78