Skip to content

Commit

Permalink
There is no “nl”, it is “nl-in” and “nl-out”
Browse files Browse the repository at this point in the history
nl-out is still not documented
  • Loading branch information
AlexDaniel committed Nov 19, 2016
1 parent 045db37 commit 0414020
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/Type/IO.pod6
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ my $name = prompt("Hi, what's your name? ");
=for code :skip-test
my $fh = open(IO::Path() $path, :$r, :$w, :$a, :$rw,
:$bin, :$enc, :$nl, :$chomp)
:$bin, :$enc, :$nl-in, :$chomp)
Opens the C<$path> (by default in text mode) with the given options,
returning an L<IO::Handle> object.
Expand Down Expand Up @@ -231,15 +231,15 @@ This is because one needs to specify a specific unicode encoding, e.g.
=head3 Newline options
=item end-of-line (EOL) marker, C<:nl>
=item end-of-line (EOL) marker, C<:nl-in>
The marker used to indicate the end of a line of text. Only used in text
mode. Defaults to "EOL", which implies accepting any combination of C<"\n">,
C<"\r\n"> or C<"\r"> or any other Unicode character that has the C<Zl>
(Separator, Line) property.
# explicitly use CR-LF as EOL character
my $fh = open("path-to-file", nl => "\r\n");
my $fh = open("path-to-file", nl-in => "\r\n");
=item chomp mode, C<:chomp>
Expand Down

0 comments on commit 0414020

Please sign in to comment.