[Chapter 15] 15.19 Directory Reading Routines
Author: Stephen Spainhour and Valerie Quercia
Date: Fri Aug 29 18:13:25 1997

#

| Chapter 15 Perl Quick Reference |

## 15.19 Directory Reading Routines

`closedir` dirhandle

  Closes a directory opened by `opendir`.

`opendir` dirhandle, dirname

  Opens a directory on the handle specified.

`readdir` dirhandle

  Returns the next entry (or an array of entries) from the directory.

`rewinddir` dirhandle

  Positions the directory to the beginning.

`seekdir` dirhandle, pos

  Sets position for `readdir` on the directory.

`telldir` dirhandle

  Returns the position in the directory.

Formats |  | System Interaction