7
7
class IO::Handle { }
8
8
9
9
10
- Instances of C < IO::Handle > encapsulate an I < handle > to manipulate input/output resources.
11
- Usually there is no need to create directly an C < IO::Handle > instance, since it will be done
12
- by other roles and methods. For instance, an L < IO::Path > object provides
13
- an L < open > method that returns an C < IO::Handle > :
10
+ Instances of C < IO::Handle > encapsulate an I < handle > to manipulate input/output
11
+ resources. Usually there is no need to create directly an C < IO::Handle >
12
+ instance, since it will be done by other roles and methods. For instance, an
13
+ L < IO::Path > object provides an L < open > method that returns an C < IO::Handle > :
14
14
15
15
my $fh = '/tmp/log.txt'.IO.open;
16
16
say $fh.^name; # OUTPUT: IO::Handle
@@ -489,7 +489,9 @@ Defined as:
489
489
490
490
method print-nl(IO::Handle:D: --> True)
491
491
492
- Writes the value of C < $.nl-out > attribute into the handle.
492
+ Writes the value of C < $.nl-out > attribute into the handle. This attribute, by
493
+ default, is C <  > , but see the L < page on newline|/language/newline > for the rules
494
+ it follows in different platforms and environments.
493
495
494
496
Attempting to call this method when the handle is
495
497
L < in binary mode|/type/IO::Handle#method_encoding > will result in
@@ -508,9 +510,9 @@ Defined as:
508
510
multi method printf(IO::Handle:D: Cool $format, *@args)
509
511
510
512
Formats a string based on the given format and arguments and C < .print > s the
511
- result into the filehandle.
512
- See L < sub sprintf|https://docs.perl6.org/type/Str#sub_sprintf > for details
513
- on acceptable format directives.
513
+ result into the filehandle. See
514
+ L < sub sprintf|https://docs.perl6.org/type/Str#sub_sprintf > for details on
515
+ acceptable format directives.
514
516
515
517
Attempting to call this method when the handle is
516
518
L < in binary mode|/type/IO::Handle#method_encoding > will result in
0 commit comments