IO::Dir
IO::Dir
NAME
IO::Dir - supply object methods for directory handles
SYNOPSIS
use IO::Dir; $d = IO::Dir->new("."); if (defined $d) { while (defined($_ = $d->read)) { something($_); } $d->rewind; while (defined($_ = $d->read)) { something_else($_); } undef $d; } tie %dir, 'IO::Dir', "."; foreach (keys %dir) { print $_, " " , $dir{$_}->size,"\n"; }
DESCRIPTION
The IO::Dir
package provides two interfaces to perl's directory reading routines.
The first interface is a