method print-nl
1 | class IO::CatHandle |
1.1 | (IO::CatHandle) method print-nl |
2 | class IO::Handle |
2.1 | (IO::Handle) method print-nl |
Documentation for method print-nl
assembled from the following types:
class IO::CatHandle
From IO::CatHandle
(IO::CatHandle) method print-nl
Defined as:
multi method print-nl(|)
The IO::CatHandle type overrides this method to throw a X::NYI
exception. If you have a good idea for how this method should behave, tell Rakudo developers about it!
class IO::Handle
From IO::Handle
(IO::Handle) method print-nl
Defined as:
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;