in reply to Re: Removing certain elements from an array
in thread Removing certain elements from an array
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.
|
|---|