use strict; my $filelist = "/foo/bar/file.txt" open(FILE, $filelist) or die "$!\n"; while() { chomp; open(FILE2, $_) or die "$!\n"; close; } close;