Perl Information Center Tutorials - Directory Handling
These tutorials were written to help you get a quick, but thorough, understanding of Perl -
the scope of the language as well as it's specific capabilities.
| Beginners
| Built-In Functions
| Advanced
| CGI Applications
|
|
|
|
|
|
Directories
Perl offers more functions that deal with files, I/O, and directory
management than any other capability it supports. This wide variety of
file functions is supplemented by some of the most terse (does more in
fewer words - that's good!) syntax of any language, making
file and directory I/O operations extremely easy.
|
| closedir, opendir
|
|
| readdir, rewinddir, seekdir, telldir
|
|
| chdir, chroot, mkdir, rmdir
|
Directory Handling Syntax
Directory Functions Reference
Here's a quick reference of the available directory functions, in alphabetical order.
Unless otherwise noted, these functions operate on $_ by default.
If you have any suggestions or correction, please let me know.
|