in reply to Re^2: Remove array elements dynamically! (reverse)
in thread Remove array elements dynamically!
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Remove array elements dynamically! (reverse)
by GrandFather (Saint) on Aug 27, 2007 at 23:20 UTC |