Jump to content

Perl Programming/Keywords/rmdir

From Wikibooks, open books for an open world
Previous: rindex Keywords Next: s

The rmdir keyword

[edit | edit source]

rmdir removes the directory with the name specified by FILENAME, if the directory is empty. rmdir returns true on success and false otherwise, setting $! (errno). Without FILENAME, contents of $_ are used.

Syntax

[edit | edit source]
  rmdir FILENAME
  rmdir

Examples

[edit | edit source]
rmdir DataDir\abcweb

See also

[edit | edit source]
chdir closedir mkdir opendir readdir rewinddir rmdir seekdir telldir
Previous: rindex Keywords Next: s