Search notes:

Perl module List::MoreUtils

use warnings;
use strict;

use List::MoreUtils;

my @array = (0,0,5,9,0,0,0,7,0,3,0,0);

# Get index of last non-null element in @array:
print List::MoreUtils::lastidx { $_ } @array;
print "\n";

# ----

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

print join " - ", List::MoreUtils::mesh(@a1, @a2);
# one - apple - two - oranages - three - pears - four - bananas
Github repository PerlModules, path: /List/MoreUtils/script.pl
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...', 1741106962, '18.118.152.123', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/Perl/modules/List/MoreUtils/index(53): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78