Change 33760 by [EMAIL PROTECTED] on 2008/04/27 20:04:30
Subject: [PATCH] doc patch for perlrun -x
From: Bram <[EMAIL PROTECTED]>
Date: Sun, 27 Apr 2008 21:13:36 +0200
Message-ID: <[EMAIL PROTECTED]>
Affected files ...
... //depot/perl/pod/perlrun.pod#167 edit
Differences ...
==== //depot/perl/pod/perlrun.pod#167 (text) ====
Index: perl/pod/perlrun.pod
--- perl/pod/perlrun.pod#166~33376~ 2008-02-26 05:13:18.000000000 -0800
+++ perl/pod/perlrun.pod 2008-04-27 13:04:30.000000000 -0700
@@ -899,6 +899,14 @@
ASCII text, such as in a mail message. Leading garbage will be
discarded until the first line that starts with #! and contains the
string "perl". Any meaningful switches on that line will be applied.
+
+All references to line numbers by the program (warnings, errors, ...)
+will treat the #! line as the first line.
+Thus a warning on the 2nd line of the program (which is on the 100th
+line in the file) will be reported as line 2, and not as line 100.
+This can be overridden by using the #line directive.
+(See L<perlsyn/"Plain-Old-Comments-(Not!)">)
+
If a directory name is specified, Perl will switch to that directory
before running the program. The B<-x> switch controls only the
disposal of leading garbage. The program must be terminated with
End of Patch.