In perl.git, the branch blead has been updated <http://perl5.git.perl.org/perl.git/commitdiff/1c18e81d458049035172a36c23ddaf25f508d6a7?hp=59edad4d4b63b64f330c27c861c45c3c1a58de74>
- Log ----------------------------------------------------------------- commit 1c18e81d458049035172a36c23ddaf25f508d6a7 Merge: 59edad4... 51d9476... Author: brian d foy <[email protected]> Date: Thu Sep 24 17:06:25 2009 -0500 Merge branch 'docs' into blead commit 51d9476f59194f5f7559ec77351329963b330df8 Author: brian d foy <[email protected]> Date: Thu Sep 24 17:06:04 2009 -0500 * RT #63620: Refer to the :crlf layer instead of STDIO for line ending translations M pod/perlport.pod ----------------------------------------------------------------------- Summary of changes: pod/perlport.pod | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pod/perlport.pod b/pod/perlport.pod index 88c6e8f..f44ae69 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 -- Perl5 Master Repository
