open (FILE, "a.large.file") or die "cant open a.large.file: $!\n"; while () { #read line by line so as not to slurp all of the file into memory. #do stuff to each line here }