unless(@array){ print "There is no item remaining in the file"; last; }