Help for this page
$ cat tst_del.pl use v5.14; ... This is perl 5, version 38, subversion 2 (v5.38.2)
If any part of LIST is an array, "foreach" will get very confused +if you add or remove elements within the loop body, for example with "spl +ice". So don't do that.