File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -87,15 +87,18 @@ In B<6.d> language, path C<'-'> has no special meaning.
87
87
The C < :out-buffer > controls output buffering and by default behaves as if
88
88
it were C < Nil > . See method L < out-buffer > for details.
89
89
90
- B < Note: > unlike some other languages, Perl 6 does not use reference counting,
91
- and so B < the file handles are NOT flushed or closed when they go out of scope> .
90
+ B < Note (Rakudo versions before 2017.09): >
91
+ B < File handles are NOT flushed or closed when they go out of scope> .
92
92
While they I < will > get closed when garbage collected, garbage collection isn't
93
93
guaranteed to get run. This means I < you should > use an explicit C < close > on
94
94
handles opened for writing, to avoid data loss, and
95
95
an explicit C < close > is I < recommended > on handles opened for reading as well, so
96
96
that your program does not open too many files at the same time, triggering
97
97
exceptions on further C < open > calls.
98
98
99
+ B < Note (Rakudo versions 2017.09 and after): > Open file handles are
100
+ automatically closed on program exit.
101
+
99
102
= head2 method comb
100
103
101
104
Defined as:
You can’t perform that action at this time.
0 commit comments