--- name: rewinddir status: documented runtime: pp source: src/runtime/pp/directory.rs --- ```{index} single: rewinddir; Perl built-in (pp runtime) ``` # rewinddir ## Synopsis ```perl rewinddir(DIRHANDLE); ``` ## Description 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. ## See also opendir, readdir, closedir