| Previous | Next
DirHandleProvides methods for accessing Perl's directory functions, avoiding namespace pollution. Creates anonymous glob to hold a directory handle and closes the dirhandle automatically when the last reference goes out of scope. The following methods are provided.
$dh = new DirHandle [dirname] Constructor. Creates a new directory handle. The optional directory name,
$dh->close( ) Closes a directory handle; equivalent to the
$dh->open(dirname) Opens directory
$dh->read( ) Reads directory entries. Equivalent to the
$dh->rewind( ) Sets current position to beginning of directory; equivalent to the |