Change 11802 by ams@ams-lustre on 2001/08/31 18:11:32
Subject: [DOC PATCH] Add perl4 warning messages to perldiag.pod
From: "Philip Newton" <[EMAIL PROTECTED]>
Date: Fri, 31 Aug 2001 21:12:56 +0200
Message-Id: <[EMAIL PROTECTED]>
Affected files ...
... //depot/perl/pod/perldiag.pod#234 edit
Differences ...
==== //depot/perl/pod/perldiag.pod#234 (text) ====
Index: perl/pod/perldiag.pod
--- perl/pod/perldiag.pod.~1~ Fri Aug 31 12:15:05 2001
+++ perl/pod/perldiag.pod Fri Aug 31 12:15:05 2001
@@ -1879,6 +1879,12 @@
shows in the regular expression about where the problem was discovered.
See L<perlre>.
+=item "%s" may clash with future reserved word
+
+(W) This warning may be due to running a perl5 script through a perl4
+interpreter, especially if the word that is being warned about is
+"use" or "my".
+
=item % may only be used in unpack
(F) You can't pack a string by supplying a checksum, because the
@@ -3337,6 +3343,12 @@
of Perl. Check the #! line, or manually feed your script into Perl
yourself.
+=item syntax error in file %s at line %d, next 2 tokens "%s"
+
+(F) This error is likely to occur if you run a perl5 script through
+a perl4 interpreter, especially if the next 2 tokens are "use strict"
+or "my $var" or "our $var".
+
=item %s syntax OK
(F) The final summary message when a C<perl -c> succeeds.
End of Patch.