in reply to Re^3: Remove array elements dynamically! (reverse)
in thread Remove array elements dynamically!

or:

my %unique; @unique{@arrayindex} = (); foreach my $i (sort { $b <=> $a } keys %unique) { splice @array, $i, 1; }

DWIM is Perl's answer to Gödel