Skip to content

Commit

Permalink
close: document close() fails with an existing error on the handle
Browse files Browse the repository at this point in the history
  • Loading branch information
tonycoz committed Jul 26, 2023
1 parent 12bbd9c commit c94ff39
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pod/perlfunc.pod
Original file line number Diff line number Diff line change
Expand Up @@ -1356,8 +1356,10 @@ X<close>

Closes the file or pipe associated with the filehandle, flushes the IO
buffers, and closes the system file descriptor. Returns true if those
operations succeed and if no error was reported by any PerlIO
layer. Closes the currently selected filehandle if the argument is
operations succeed, if no error was reported by any PerlIO layer, and
theere was no existing error on the filehandle.

Closes the currently selected filehandle if the argument is
omitted.

You don't have to close FILEHANDLE if you are immediately going to do
Expand Down

0 comments on commit c94ff39

Please sign in to comment.