closedir « File « Perl






1.List the files and subdirectories in a directory in alphabetical order.
2.When you're done with a directory, you need to close it with the closedir command:
3.The closedir function closes the directory that was opened by the opendir function.