Skip to content

Commit 137aa82

Browse files
committed
Revert "Remove suggestion for using LEAVE phasers"
This reverts commit d1f2d49. Not only this .close is not related to the thing experienced in the ticket, but it also talks about exceptions in other parts of your code (not even related to the file you want to close).
1 parent d1f2d49 commit 137aa82

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/Type/IO.pod6

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,8 @@ written equivalently like so:
229229
close $fh;
230230
231231
When a file was opened for writing, closing it is important to ensure that all
232-
contents are actually written to the file.
232+
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.
233234
234235
=head2 sub slurp
235236

0 commit comments

Comments
 (0)