foreach(@remindexes) { splice(@array, $_, 1); }