$count = 0; $item = "match"; foreach $element (@array) { if($element eq $item) { @array[count] = ""; } count++; }
Edit by myocom: Added code tags
In reply to Deleting elements from array questions by chuleto1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |