Documentation for method
print-nl assembled from the following types:
method print-nl(IO::Handle: --> True)
Writes the value of
$.nl-out attribute into the handle. This attribute, by default, is
␤, but see the page on newline for the rules it follows in different platforms and environments.
Attempting to call this method when the handle is in binary mode will result in
X::IO::BinaryMode exception being thrown.
my = 'path/to/file'.IO.open: :w, :nl-out("\r\n");.print: "some text";.print-nl; # prints \r\n.close;
multi method print-nl(|)