in reply to How to compare two associative arrays efficiently
This is a faq.
You can find this by running perldoc -q difference (or perldoc -q intersection) locally.