next if -d; # Skip directories.. OR: # next unless -f; # Skip anything that isn't a file