Last active
May 30, 2016 17:16
-
-
Save dogbert17/ca88f9827116cbc8db3b5c92096123c4 to your computer and use it in GitHub Desktop.
Attempt to document method print-nl in class IO::Handle
This file contains hidden or 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