summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2021-08-20 19:55:35 -0600
committerKaren Etheridge <github@froods.org>2021-08-20 19:30:49 -0700
commitb00088e00c4239461444105ef6497559559258e9 (patch)
tree3f21c5510f2b792ebdccba1b110f1137722f6411
parent6521d5bbe3d0a959ce85a9e2f45c751b81047039 (diff)
downloadperl-b00088e00c4239461444105ef6497559559258e9.tar.gz
perlop: Fix indented here-doc empty line description
This bug was introduced by c275db86a9. Spotted by Karen Etheridge
-rw-r--r--pod/perlop.pod19
1 files changed, 10 insertions, 9 deletions
diff --git a/pod/perlop.pod b/pod/perlop.pod
index 563ab8e5dd..1a85955c70 100644
--- a/pod/perlop.pod
+++ b/pod/perlop.pod
@@ -2895,15 +2895,16 @@ This will print...
The line containing the delimiter that marks the end of the here-doc
determines the indentation template for the whole thing. Compilation
-croaks if any line inside the here-doc does not begin with the precise
-indentation of the terminating line. For example, suppose the
-terminating line begins with a tab character followed by 4 space
-characters. Every line in the here-doc must begin with a tab followed
-by 4 spaces. They are stripped from each line, and any leading white
-space remaining on a line serves as the indentation for that line.
-Currently, only the TAB and SPACE characters are treated as whitespace
-for this purpose. Tabs and spaces may be mixed, but are matched
-exactly; tabs remain tabs and are not expanded.
+croaks if any non-empty line inside the here-doc does not begin with the
+precise indentation of the terminating line. (An empty line consists of
+the single character "\n".) For example, suppose the terminating line
+begins with a tab character followed by 4 space characters. Every
+non-empty line in the here-doc must begin with a tab followed by 4
+spaces. They are stripped from each line, and any leading white space
+remaining on a line serves as the indentation for that line. Currently,
+only the TAB and SPACE characters are treated as whitespace for this
+purpose. Tabs and spaces may be mixed, but are matched exactly; tabs
+remain tabs and are not expanded.
Additional beginning whitespace (beyond what preceded the
delimiter) will be preserved: