@files = grep { /\errors.txt$/ && -f $_ }, @files;