Copyright (C) 2000-2012 |
Manpages DirHandleSection: Perl Programmers Reference Guide (3perl)Updated: 2001-02-22 Index Return to Main Contents NAMEDirHandle - supply object methods for directory handlesSYNOPSISuse DirHandle; $d = new DirHandle "."; if (defined $d) { while (defined($_ = $d->read)) { something($_); } $d->rewind; while (defined($_ = $d->read)) { something_else($_); } undef $d; } DESCRIPTIONThe "DirHandle" method provide an alternative interface to the opendir(), closedir(), readdir(), and rewinddir() functions.The only objective benefit to using "DirHandle" is that it avoids namespace pollution by creating globs to hold directory handles.
IndexThis document was created by man2html, using the manual pages. Time: 08:40:19 GMT, April 19, 2024 |