Documentation for routine print-nl

Documentation for routine print-nl, assembled from the following types:

class Any

From Any

(Any) method print-nl

Defined As:

    method print-nl(--> TODO)


class IO::Handle

From IO::Handle

(IO::Handle) method print-nl

method print-nl(IO::Handle:D: --> True)

Writes a newline to the filehandle. The newline marker, which is stored in the attribute $.nl-out, defaults to \n unless another marker has been specified in the call to open.

my $fh = open 'path/to/file':wnl-out => "\r\n";
$fh.print("some text");
$fh.print-nl;                                        # \r\n