Perl Programming/Keywords/closedir

The closedir keyword
closedir closes a directory that has been opened with opendir. It returns true on success and false otherwise.