Skip to content

Commit 01bc71d

Browse files
authored
Mention :close arg in caveat section of .close docs
1 parent cec82fc commit 01bc71d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

doc/Type/IO/Handle.pod6

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -704,9 +704,10 @@ is I<recommended> on handles opened for reading as well, so that your program
704704
does not open too many files at the same time, triggering exceptions on further
705705
C<open> calls.
706706
707-
As a simpler alternative, the L<IO::Path> type provides many reading and
708-
writing methods that let you work with files without dealing with file handles
709-
directly.
707+
Note several methods allow for providing C<:close> argument, to close the handle
708+
after the operation invoked by the method completes. As a simpler alternative,
709+
the L<IO::Path> type provides many reading and writing methods that let you work
710+
with files without dealing with file handles directly.
710711
711712
=head2 method flush
712713

0 commit comments

Comments
 (0)