@return_files = readDirectory($directory); foreach(@return_files) { next if ($_ eq "." || $_ eq ".."); ####################### #How can a tell between files and directories? ######################## print OUT "