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.