diff options
author | brian d foy <bdfoy@cpan.org> | 2009-09-24 17:06:04 -0500 |
---|---|---|
committer | brian d foy <bdfoy@cpan.org> | 2009-09-24 17:06:04 -0500 |
commit | 51d9476f59194f5f7559ec77351329963b330df8 (patch) | |
tree | 77849361e79f06760ffd75c10c8e11cee6e6aba0 | |
parent | 0656b9fc8aae5da3be28d633841446a5069846e7 (diff) | |
download | perl-51d9476f59194f5f7559ec77351329963b330df8.tar.gz |
* RT #63620: Refer to the :crlf layer instead of STDIO for line ending translations
-rw-r--r-- | pod/perlport.pod | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pod/perlport.pod b/pod/perlport.pod index 88c6e8fa0f..f44ae6943a 100644 --- a/pod/perlport.pod +++ b/pod/perlport.pod @@ -88,11 +88,11 @@ and S<Mac OS> uses C<\015>. Perl uses C<\n> to represent the "logical" newline, where what is logical may depend on the platform in use. In MacPerl, C<\n> always -means C<\015>. In DOSish perls, C<\n> usually means C<\012>, but -when accessing a file in "text" mode, STDIO translates it to (or -from) C<\015\012>, depending on whether you're reading or writing. -Unix does the same thing on ttys in canonical mode. C<\015\012> -is commonly referred to as CRLF. +means C<\015>. In DOSish perls, C<\n> usually means C<\012>, but when +accessing a file in "text" mode, perl uses the C<:crlf> layer that +translates it to (or from) C<\015\012>, depending on whether you're +reading or writing. Unix does the same thing on ttys in canonical +mode. C<\015\012> is commonly referred to as CRLF. To trim trailing newlines from text lines use chomp(). With default settings that function looks for a trailing C<\n> character and thus |