for my $file ( @files_to_look_in ) { open( HTML_FILE, "<$file" ) or die "Can't open $file for input: $!"; ...