http://www.perlmonks.org?node_id=301

rewinddir

See the current Perl documentation for rewinddir.

Here is our local, out-dated (pre-5.6) version:


rewinddir - reset directory handle



rewinddir DIRHANDLE



Sets the current position to the beginning of the directory for the readdir() routine on DIRHANDLE.