open FILE_LIST, "list.txt"; while() { #read each line into the array here -- gotta look up the syntax } close FILE_LIST;