the code above delete the values of the repeated terms but it leaves the position blank ($TERMS[$i]), i want to delete the position too...how can i do that?foreach $term (@TERMS){ push(@INDEX,$term); for($i=0; $i<scalar(@TERMS); $i++){ if ($term eq $TERMS[$i]){ delete $TERMS[$i]; } } }
In reply to delete an element from an array by alkis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |