develooper Front page | perl.perl5.changes | Postings from April 2008

Change 33760: [PATCH] doc patch for perlrun -x

From:
Rafael Garcia-Suarez
Date:
April 27, 2008 13:15
Subject:
Change 33760: [PATCH] doc patch for perlrun -x
Change 33760 by rgs@stcosmo on 2008/04/27 20:04:30

	Subject: [PATCH] doc patch for perlrun -x
	From: Bram <p5p@perl.wizbit.be>
	Date: Sun, 27 Apr 2008 21:13:36 +0200
	Message-ID: <20080427211336.g8mvjusbcc4gwsk4@horde.wizbit.be>

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.



Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About