Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

rewinddir

Resets the position of a directory handle back to the beginning.

Sets the current position of DIRHANDLE back to the beginning of the directory, so that subsequent readdir calls will re-read the directory from the start. The directory must have been previously opened with opendir.

Returns 1 on success, undef on failure.

Synopsis

rewinddir(DIRHANDLE);

See Also

opendir, readdir, closedir