Skip to content

Commit

Permalink
document dirhandles vs filehandles
Browse files Browse the repository at this point in the history
The statement that they are in separate namespaces was never really true.
Since the recent commit 489c16b a
single I/O object can no longer be opened both ways at once, so the old
statement is now totally false.  Replace it with something describing
the new situation.
  • Loading branch information
Zefram committed Aug 18, 2017
1 parent 5997475 commit 9d8092f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pod/perlfunc.pod
Original file line number Diff line number Diff line change
Expand Up @@ -4781,7 +4781,8 @@ 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 have their own namespace separate from FILEHANDLEs.
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 L<C<readdir>|/readdir DIRHANDLE>.

Expand Down

0 comments on commit 9d8092f

Please sign in to comment.