ASPN ActiveState Programmer Network
  ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups | Web Services
SEARCH
advanced | search help

Reference
ActivePerl 5.6
Modules
AnyDBM File
AutoLoader
AutoSplit
B
Benchmark
ByteLoader
Carp
CGI
Config
CPAN
Cwd
DB
Digest
DirHandle
Dumpvalue
DynaLoader
Encode
English
Env
Errno
Exporter
Fatal
Fcntl
FileCache
FileHandle
FindBin
IO
LWP
lwpcook
MD5
Memoize
NEXT
O
Opcode
PerlIO
perllocal
POSIX
Safe
SDBM File
SelectSaver
SelfLoader
Shell
Socket
Storable
Switch
Symbol
Test
Thread
Tk
UNIVERSAL
URI
Win32
XSLoader

MyASPN >> Reference >> ActivePerl 5.6 >> Modules

 DirHandle - supply object methods for directory handles


NAME

DirHandle - supply object methods for directory handles


SYNOPSIS

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


DESCRIPTION

The 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.

 DirHandle - supply object methods for directory handles


Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState 2004 All rights reserved