in reply to compare array with file

Consider using the method get_Lonly or get_Ronly from the module List::Compare.