Skip to content

Commit 40665df

Browse files
committed
more information on closing filehandles #1258
1 parent d1e2d73 commit 40665df

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
@@ -229,7 +229,9 @@ my $fh = open(IO::Path() $path, :$r, :$w, :$a, :$rw,
229229
:$bin, :$enc, :$nl-in, :$nl-out, :$chomp)
230230
231231
Opens the C<$path> (by default in text mode) with the given options,
232-
returning an L<IO::Handle> object.
232+
returning an L<IO::Handle> object. In order to close the L<IO::Handle>
233+
one needs to call L<close|/routine/close> explicitly or use a L<LEAVE|/syntax/LEAVE>
234+
phaser.
233235
234236
=head3 File mode options
235237

0 commit comments

Comments
 (0)