while (my $line = ) { # open the file ($line) as DATA # manipulate the file # close(DATA); } close(FILES);