in reply to Comparing arrays

have a look at a previous comparing arrays here in Perlmonks.
There are examples, links to similar solutions, and benchmarks of different methods, so that you may choose the one you are more conmfortable with.

Merry Christmas

cchampion