Perl Programming/Keywords/rmdir

Previous: rindex Keywords Next: s

The rmdir keyword

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

  rmdir FILENAME
  rmdir

Examples

rmdir DataDir\abcweb

See also

chdirclosedirmkdiropendirreaddirrewinddirrmdirseekdirtelldir
Previous: rindex Keywords Next: s
Category:Book:Perl Programming#Keywords/rmdir%20
Category:Book:Perl Programming