in reply to Print both elements in a compare

Have you looked into List::Compare?