splice( @array, $_, 1) for (reverse sort @remindexes);
This way, you start with the highest array index and move down, so you don't have to keep count of how many elements you have removed.
In reply to Re: Re: Removing certain elements from an array
by Cirollo
in thread Removing certain elements from an array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |