foreach my $file(@list_of_files_to_compare_to_start_date_file){ if ($file_a != $file) { print "$file\n"; } }