NAME

PerlIO::dir - Reads directories

SYNOPSIS

open my $dp, '<:dir', '.';

binmode $dp, ':encoding(cp932)'; # OK

my @dirs = <$dp>; # added "\n" at the end of the name
chomp @dirs; # if necessary

seek $dp, 0, 0;     # rewind
my $pos = tell $dp;

SEE ALSO

PerlIO::Util.

AUTHOR

Goro Fuji <gfuji (at) cpan.org>

LICENCE AND COPYRIGHT

Copyright (c) 2008, Goro Fuji <gfuji (at) cpan.org>. Some rights reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.