Movatterモバイル変換


[0]ホーム

URL:


DirHandle
(source,CPAN)
version 1.04
You are viewing the version of this documentation from Perl 5.24.0.View the latest version

CONTENTS

#NAME

DirHandle - supply object methods for directory handles

#SYNOPSIS

use DirHandle;$d = DirHandle->new(".");if (defined $d) {    while (defined($_ = $d->read)) { something($_); }    $d->rewind;    while (defined($_ = $d->read)) { something_else($_); }    undef $d;}

#DESCRIPTION

TheDirHandle method provide an alternative interface to the opendir(), closedir(), readdir(), and rewinddir() functions.

The only objective benefit to usingDirHandle is that it avoids namespace pollution by creating globs to hold directory handles.

Perldoc Browser is maintained by Dan Book (DBOOK). Please contact him via theGitHub issue tracker oremail regarding any issues with the site itself, search, or rendering of documentation.

The Perl documentation is maintained by the Perl 5 Porters in the development of Perl. Please contact them via thePerl issue tracker, themailing list, orIRC to report any issues with the contents or format of the documentation.


[8]ページ先頭

©2009-2025 Movatter.jp