in reply to checking array elements aginst another array
List::MoreUtils's pairwise() might be helpful for a similar kind of comparison too.
-Paul