Assuming of course that there are no duplicate indexes. Super-safest is:
foreach my $i (sort { $b <=> $a } unique(@arrayindex)) { splice @array, $i, 1; }
;-)
lodin
In reply to Re^3: Remove array elements dynamically! (reverse)
by lodin
in thread Remove array elements dynamically!
by newbio
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |