foreach my $file ( grep { -f "$path/$_" } @files )