in reply to deleting a specific element from an array

It's a good time for a hash and grep.

my %delh; @delh{@dels} = (); @array = grep ! exists $delh{$_}, @array;