You want to lookup if something is in the list of items to delete. Hashes are good for looking up strings.
my %dels = map { $_ => 1 } @dels; @array = grep !$dels{$_}, @array;
In reply to Re: deleting a specific element from an array
by ikegami
in thread deleting a specific element from an array
by sugar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |