Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
IO &close: correct link, explain why close is necessary
  • Loading branch information
moritz committed Feb 14, 2015
1 parent 256ddd6 commit 8ba60b3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/Type/IO.pod
Expand Up @@ -121,7 +121,7 @@ C<.lines> and C<.get>. Defaults to C<True>.
=head2 method close
To close an open file handle, simply call its
L<close|/type/IO::Handle/close> method:
L<close|/type/IO::Handle#method close> method:
my $fh = open("path/to/file");
# ... do stuff with the file
Expand All @@ -134,6 +134,9 @@ written equivalently like so:
# ... do stuff with the file
close $fh;
When a file was opened for writing, closing it is important to ensure that all
contents are actually written to the file.
=head2 sub prompt
sub prompt($msg)
Expand Down

0 comments on commit 8ba60b3

Please sign in to comment.