Just wonder if I am given two arrays, A and B, how to remove/delete those elements in A that can also be found in B? What is the most efficient way of doing this?
And also, as a special case, if B is the resulting array after grep
on A, how to do this? Of course, in this case, we can do a grep
on the negated condition. But is there something like taking a complement of an array with respect to another in perl?
Thank you.