Help for this page
opendir(D, $dir) or die "unable to read $dir: $!" while (defined(my $leaf = readdir(D))) { ... ... } closedir(D);