Closes a directory opened by opendir.
Opens a directory on the handle specified. If dirhandle is an uninitialized scalar variable, a new, unique handle is automatically created.
In scalar context, returns the next entry from the directory or undef if none remains. The entry is the name component within the directory, not the full name.
In list context, returns a list of all remaining entries from the directory.
Prepares for reading the first entry again.
Sets the position for readdir on the directory. pos should be a file offset as returned by telldir.
Returns the position in the directory.