in reply to array from file and compare

List::Util may also be of interest to you and your fellow classmate who asked this question earlier today.