summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorM.J.T. Guy <mjtg@cus.cam.ac.uk>1997-06-19 18:00:07 +1200
committerTim Bunce <Tim.Bunce@ig.co.uk>1997-08-07 00:00:00 +1200
commit702d120df290e0de1b21f167f7d0110b35ee2fef (patch)
treeb74954eb09d28b05049b41f1e4331bca0cf10cfb /pod
parentbdbeb3238ee7353e4c58cfc38a0d20b2001d3476 (diff)
downloadperl-702d120df290e0de1b21f167f7d0110b35ee2fef.tar.gz
[BUG:PATCH] Missing semicolon message wrong in perldiag
This error message is different between the source and perldiag.pod, so that "use diagnostics;" doesn't pick it up. I have moved the message to be in the correct collating order, _ignoring_ the initial TAB. Is this the right thing to do? Is the ordering merely for the convenience of humans, or are there programs which exploit it? I note that "use diagnostics;" doesn't. Warning: This patch inserts a TAB into perldiag - make sure it stays as a TAB. p5p-msgid: E0welEn-0002vT-00@taurus.cus.cam.ac.uk
Diffstat (limited to 'pod')
-rw-r--r--pod/perldiag.pod14
1 files changed, 7 insertions, 7 deletions
diff --git a/pod/perldiag.pod b/pod/perldiag.pod
index 1badf36eab..c0eb857eac 100644
--- a/pod/perldiag.pod
+++ b/pod/perldiag.pod
@@ -23,7 +23,7 @@ L<perlfunc/eval>.
Some of these messages are generic. Spots that vary are denoted with a %s,
just as in a printf format. Note that some messages start with a %s!
-The symbols C<"%-?@> sort before the letters, while C<[> and C<\> sort after.
+The symbols C<"%(-?@> sort before the letters, while C<[> and C<\> sort after.
=over 4
@@ -143,6 +143,12 @@ Perl yourself.
instead of Perl. Check the #! line, or manually feed your script
into Perl yourself.
+=item (Missing semicolon on previous line?)
+
+(S) This is an educated guess made in conjunction with the message "%s
+found where operator expected". Don't automatically put a semicolon on
+the previous line just because you saw this message.
+
=item B<-P> not allowed for setuid/setgid script
(F) The script would have to be opened by the C preprocessor by name,
@@ -1369,12 +1375,6 @@ found where operator expected". Often the missing operator is a comma.
As a general rule, you'll find it's missing near the place you were last
editing.
-=item Missing semicolon on previous line?
-
-(S) This is an educated guess made in conjunction with the message "%s
-found where operator expected". Don't automatically put a semicolon on
-the previous line just because you saw this message.
-
=item Modification of a read-only value attempted
(F) You tried, directly or indirectly, to change the value of a