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 a6f1cbf commit 8f53830Copy full SHA for 8f53830
doc/Type/IO/Handle.pod6
@@ -309,14 +309,12 @@ Defined as:
309
310
method print-nl(IO::Handle:D: --> True)
311
312
-Writes a newline to the filehandle. The newline marker, which is stored
313
-in the attribute C<$.nl-out>, defaults to C<\n> unless another marker has
314
-been specified in the call to L<open>.
+Writes the value of C<$.nl-out> attribute into the handle.
315
316
=for code :skip-test
317
my $fh = open 'path/to/file', :w, nl-out => "\r\n";
318
$fh.print("some text");
319
-$fh.print-nl; # \r\n
+$fh.print-nl; # prints \r\n
320
$fh.close;
321
322
=head2 method printf
0 commit comments