Perl Programming/Keywords/opendir

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