1DirHandle(3pm)         Perl Programmers Reference Guide         DirHandle(3pm)
2
3
4

NAME

6       DirHandle - supply object methods for directory handles
7

SYNOPSIS

9           use DirHandle;
10           $d = DirHandle->new(".");
11           if (defined $d) {
12               while (defined($_ = $d->read)) { something($_); }
13               $d->rewind;
14               while (defined($_ = $d->read)) { something_else($_); }
15               undef $d;
16           }
17

DESCRIPTION

19       The "DirHandle" method provide an alternative interface to the
20       opendir(), closedir(), readdir(), and rewinddir() functions.
21
22       The only objective benefit to using "DirHandle" is that it avoids
23       namespace pollution by creating globs to hold directory handles.
24
25
26
27perl v5.26.3                      2018-03-01                    DirHandle(3pm)
Impressum