in reply to optimal way of comparing 2 arrays

This sort of task comes up a lot -- the last time I posted a basic solution was here: Re^2: RFC: The Uniqueness of hashes.. A benchmark might not rank it as fastest (I don't know), but it's easy to code and understand.