diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-12-25 16:20:19 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-12-25 16:20:19 +0000 |
commit | 1dbad523dc291b9627b38bb8a90cb8baa1d2b369 (patch) | |
tree | 30e8c90f63e0f23a8e3e8d6a62af60f803f08893 | |
parent | 7c9e965c652c539b7064f0b192c92dbee8a21bcc (diff) | |
download | perl-1dbad523dc291b9627b38bb8a90cb8baa1d2b369.tar.gz |
Make -t equal -tw.
p4raw-id: //depot/perl@13884
-rw-r--r-- | perl.c | 6 | ||||
-rw-r--r-- | pod/perlrun.pod | 12 |
2 files changed, 11 insertions, 7 deletions
@@ -1099,8 +1099,10 @@ S_parse_body(pTHX_ char **env, XSINIT_t xsinit) goto reswitch; break; - case 't': - PL_taint_warn = TRUE; + case 't': + PL_taint_warn = TRUE; + if (! (PL_dowarn & G_WARN_ALL_MASK)) + PL_dowarn |= G_WARN_ON; case 'T': PL_tainting = TRUE; s++; diff --git a/pod/perlrun.pod b/pod/perlrun.pod index 2b7cca11ce..137ecd30d8 100644 --- a/pod/perlrun.pod +++ b/pod/perlrun.pod @@ -700,11 +700,13 @@ program will be searched for strictly on the PATH. =item B<-t> Like B<-T>, but taint checks will issue warnings rather than fatal -errors. Since these are warnings, the B<-w> switch (or C<use -warnings>) must be used along with this option. B<NOTE: this is -not a substitute for -T.> This is meant only to be used as a temporary -aid while securing legacy code: for real production code and for new -secure code written from scratch always use the real B<-T>. +errors. Also, all warnings are turned on as if you had used also +a B<-w>. + +B<NOTE: this is not a substitute for -T.> This is meant only to be +used as a temporary development aid while securing legacy code: +for real production code and for new secure code written from scratch +always use the real B<-T>. =item B<-T> |