But be careful using splice on any part of a LIST that you're iterating over with foreach.
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 splice. So don't do that.
In reply to Re^2: Type of arg 1 to shift must be array (not sort)
by Fletch
in thread Type of arg 1 to shift must be array (not sort)
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |