Perl Programming/Keywords/closedir

From Wikibooks, open books for an open world
Jump to navigation Jump to search
Previous: close Keywords Next: cmp

The closedir keyword[edit | edit source]

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

Syntax[edit | edit source]

  closedir DIRHANDLE

Examples[edit | edit source]

closedir DataDir\abcweb
chdir closedir mkdir opendir readdir rewinddir rmdir seekdir telldir
Previous: close Keywords Next: cmp