in reply to Re: Comparing two file in Arrays
in thread Comparing two file in Arrays

That is a nice, slick/quick method -- but it will produce false positives for intersections if either array happens to contain multiple elements with the same value (e.g. in your example, if @a contained two elements with a value of 6).