in reply to deleting a specific element from an array

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;

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.