Last active
May 30, 2016 17:16
Star
You must be signed in to star a gist
Attempt to document method print-nl in class IO::Handle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| =head2 method print-nl | |
| method print-nl(IO::Handle:D: --> True) | |
| Writes a newline to the filehandle. The newline marker defaults | |
| to C<\n> unless another marker has been specified in the call to | |
| L<open>. | |
| my $fh = open 'path/to/file', :w, nl-out => "\r\n"; | |
| $fh.print("some text"); | |
| $fh.print-nl; # \r\n | |
| $fh.close; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment