in reply to Logical operations on arrays

These are set operations, see Set::Scalar or similar module.