We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 188d98e commit b09385aCopy full SHA for b09385a
doc/Type/IO/Handle.pod6
@@ -182,7 +182,10 @@ Defined as:
182
183
submethod DESTROY(IO::Handle:D:)
184
185
-Closes the filehandle. Note that garbage collection is not guaranteed to
+Closes the filehandle, unless its L<native-descriptor> is C<2> or lower. This
186
+ensures the standard file handles do not get inadvertently closed.
187
+
188
+Note that garbage collection is not guaranteed to
189
happen, so you must NOT rely on C<DESTROY> for closing the handles you
190
I<write to> and instead close them yourself. Programs that open a lot of files
191
should close the handles explicitly as well, regardless of whether they were
0 commit comments