Thanks to visit codestin.com Credit goes to perldoc.perl.org
Closes a directory opened by opendir and returns the success of that system call.
opendir