411 REFERENCE · Wikibooks
Perl Programming/Keywords/readdir
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
Perl read readline Keywords
The readdir keyword
readdir is a function that returns the next directory entry that was opened by opendir. If used in a list context, the function returns all the rest of the entries in the directory. If there are no more entries, it returns the undef value in scalar context and the empty list in list context.
Syntax
readdir DIRHANDLE
Perl read readline Keywords