Perl Programming/Keywords/opendir
The opendir keyword
editopendir 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
edit opendir DIRHANDLE, EXPRESION
chdir |
closedir |
mkdir |
opendir |
readdir |
rewinddir |
rmdir |
seekdir |
telldir
|