This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perlvar - clarify that paragraph mode also discards a single leading newline
authorDan Book <grinnz@grinnz.com>
Fri, 27 Nov 2020 04:19:13 +0000 (23:19 -0500)
committerKarl Williamson <khw@cpan.org>
Fri, 27 Nov 2020 16:36:23 +0000 (09:36 -0700)
pod/perlvar.pod

index 33157b8..cfe9ff2 100644 (file)
@@ -1515,7 +1515,7 @@ be better for something. :-)
 
 Setting C<$/> to an empty string -- the so-called I<paragraph mode> -- merits
 special attention.  When C<$/> is set to C<""> and the entire file is read in
-with that setting, any sequence of consecutive newlines C<"\n\n"> at the
+with that setting, any sequence of one or more consecutive newlines at the
 beginning of the file is discarded.  With the exception of the final record in
 the file, each sequence of characters ending in two or more newlines is
 treated as one record and is read in to end in exactly two newlines.  If the