opendir - Perldoc Browser

You are viewing the version of this documentation from Perl blead. This is the main development branch of Perl. (git commit bea778667b99f669b66b2d36656eda5e3f763e65)
#opendir DIRHANDLE,EXPR

Opens a directory named EXPR for processing by readdir, telldir, seekdir, rewinddir, and closedir. Returns true if successful. DIRHANDLE may be an expression whose value can be used as an indirect dirhandle, usually the real dirhandle name. If DIRHANDLE is an undefined scalar variable (or array or hash element), the variable is assigned a reference to a new anonymous dirhandle; that is, it's autovivified. Dirhandles are the same objects as filehandles; an I/O object can only be open as one of these handle types at once.

See the example at readdir.

AltStyle によって変換されたページ (->オリジナル) /