Skip to content

Commit bff3965

Browse files
committed
More precise explanation of using LEAVE for .close
There is probably a much better way to phrase it, but for the moment this will do.
1 parent 137aa82 commit bff3965

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

doc/Type/IO.pod6

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,9 @@ written equivalently like so:
230230
231231
When a file was opened for writing, closing it is important to ensure that all
232232
contents are actually written to the file. You may want to consider using a
233-
L<LEAVE|/language/phasers#LEAVE> phaser to guard against exceptions.
233+
L<LEAVE|/language/phasers#LEAVE> phaser to guard against exceptions in
234+
your code that could prevent your program from reaching the line with
235+
C<$fh.close>.
234236
235237
=head2 sub slurp
236238

0 commit comments

Comments
 (0)