Change 31787 by [EMAIL PROTECTED] on 2007/09/03 17:11:02
Deprecate the -P switch.
Affected files ...
... //depot/perl/perl.c#819 edit
... //depot/perl/pod/perlrun.pod#159 edit
Differences ...
==== //depot/perl/perl.c#819 (text) ====
Index: perl/perl.c
--- perl/perl.c#818~31691~ 2007-08-08 14:58:29.000000000 -0700
+++ perl/perl.c 2007-09-03 10:11:02.000000000 -0700
@@ -1787,6 +1787,7 @@
forbid_setid('P', -1);
PL_preprocess = TRUE;
s++;
+ deprecate("-P");
goto reswitch;
case 'S':
forbid_setid('S', -1);
==== //depot/perl/pod/perlrun.pod#159 (text) ====
Index: perl/pod/perlrun.pod
--- perl/pod/perlrun.pod#158~31755~ 2007-08-25 15:05:55.000000000 -0700
+++ perl/pod/perlrun.pod 2007-09-03 10:11:02.000000000 -0700
@@ -699,7 +699,8 @@
X<-P>
B<NOTE: Use of -P is strongly discouraged because of its inherent
-problems, including poor portability.>
+problems, including poor portability. It is deprecated and will be
+removed in a future version of Perl.>
This option causes your program to be run through the C preprocessor before
compilation by Perl. Because both comments and B<cpp> directives begin
End of Patch.