in reply to Comparing Two arrays to find differences
This is a FAQ. Super Search, Google or perldoc -q arrays or reading perlfaq4 tells you the answer.