in reply to Comparing each element of Array A to Array B

See PerlFAQ4, or type perldoc -q difference at a command prompt.