Skip to content

Instantly share code, notes, and snippets.

@dogbert17
Last active May 30, 2016 17:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dogbert17/ca88f9827116cbc8db3b5c92096123c4 to your computer and use it in GitHub Desktop.
Save dogbert17/ca88f9827116cbc8db3b5c92096123c4 to your computer and use it in GitHub Desktop.
Attempt to document method print-nl in class IO::Handle
=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