Perl Programming/Keywords/opendir

Previous: open Keywords Next: or

The opendir keyword

opendir opens a directory called EXPRESION for processing by closedir, readdir, rewinddir, seekdir, and telldir. Returns true, if successful. DIRHANDLE may be an expression with the value of an indirect dirhandle, which is usually the real dirhandle name. If DIRHANDLE is an undefined scalar variable (or array or hash element), the variable is autovivified by assigning a reference to a new anonymous dirhandle. DIRHANDLEs have their own namespace separate from FILEHANDLEs.

Syntax

  opendir DIRHANDLE, EXPRESION
chdirclosedirmkdiropendirreaddirrewinddirrmdirseekdirtelldir
Previous: open Keywords Next: or
Category:Book:Perl Programming#Keywords/opendir%20
Category:Book:Perl Programming