From: M.J.T. Guy Date: Thu, 19 Jun 1997 06:00:07 +0000 (+1200) Subject: [BUG:PATCH] Missing semicolon message wrong in perldiag X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=702d120df290e0de1b21f167f7d0110b35ee2fef;p=p5sagit%2Fp5-mst-13.2.git [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 --- diff --git a/pod/perldiag.pod b/pod/perldiag.pod index 1badf36..c0eb857 100644 --- a/pod/perldiag.pod +++ b/pod/perldiag.pod @@ -23,7 +23,7 @@ L. 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