Advertisement
Guest User

Untitled

a guest
May 30th, 2016
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. =head2 method print-nl
  2.  
  3. method print-nl(IO::Handle:D: --> True)
  4.  
  5. Writes a newline to the filehandle. The newline marker defaults
  6. to C<\n> unless another marker has been specified in the call to
  7. L<open>.
  8.  
  9. my $fh = open 'path/to/file', :w, nl-out => "\r\n";
  10. $fh.print("some text");
  11. $fh.print-nl; # \r\n
  12. $fh.close;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement