在 Any 中§
有关方法 nl-out,请参阅上下文中的主要文档
method nl-out(--> Str)
返回 Str,其值为“\n”。有关详细信息,请参阅IO::Handle.nl-out。
Num.nl-out.print; # OUTPUT: «»Whatever.nl-out.print;# OUTPUT: «»33.nl-out.print; # OUTPUT: «»
在 IO::Handle 中§
有关方法 nl-out,请参阅上下文中的主要文档
has Str is rw = "\n";
可以通过 .new 或 open 设置的属性之一。默认为 "\n"。采用一个 Str,指定此句柄的输出换行符,供方法 .put 和 .say 使用。
with 'test'.IO