Point people to perlop for here doc errors
authorbrian d foy <brian.d.foy@gmail.com>
Tue, 1 Mar 2011 08:46:27 +0000 (02:46 -0600)
committerbrian d foy <brian.d.foy@gmail.com>
Tue, 1 Mar 2011 08:46:27 +0000 (02:46 -0600)
This makes this long warning slightly more useful:

    Can't find string terminator %s anywhere before EOF

pod/perldiag.pod

index ce2a5d2..f5e115c 100644 (file)
@@ -792,9 +792,12 @@ nesting levels, the following is missing its final parenthesis:
 
     print q(The character '(' starts a side comment.);
 
-If you're getting this error from a here-document, you may have included
-unseen whitespace before or after your closing tag. A good programmer's
-editor will have a way to help you find these characters.
+If you're getting this error from a here-document, you may have
+included unseen whitespace before or after your closing tag or not
+have anything, including a linebreak, after the closing tag.  A good
+programmer's editor will have a way to help you find these characters
+(or lack of characters).  See L<perlop> for the full details on here
+documents.
 
 =item Can't find Unicode property definition "%s"