or:
my %unique; @unique{@arrayindex} = (); foreach my $i (sort { $b <=> $a } keys %unique) { splice @array, $i, 1; }
In reply to Re^4: Remove array elements dynamically! (reverse)
by GrandFather
in thread Remove array elements dynamically!
by newbio
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |