summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorMichael G. Schwern <schwern@pobox.com>2001-12-13 14:27:08 -0500
committerJarkko Hietaniemi <jhi@iki.fi>2001-12-14 14:43:40 +0000
commit6537fe72dd6d63cc0c7164fec44beb82d2568599 (patch)
tree32c01336d785c38d130126526438bf4951f89791 /perl.c
parenta58d912c5262ef3032191d4aea207683577527bb (diff)
downloadperl-6537fe72dd6d63cc0c7164fec44beb82d2568599.tar.gz
-t taint warnings
Message-ID: <20011214002707.GA10532@blackrider> (reword the perlrun -t description a bit, and move the Itaint_warn to the bottom of the intrpvar.h for binary compatibility) p4raw-id: //depot/perl@13684
Diffstat (limited to 'perl.c')
-rw-r--r--perl.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/perl.c b/perl.c
index cd82fe2ff5..a27620a41d 100644
--- a/perl.c
+++ b/perl.c
@@ -1099,6 +1099,8 @@ S_parse_body(pTHX_ char **env, XSINIT_t xsinit)
goto reswitch;
break;
+ case 't':
+ PL_taint_warn = TRUE;
case 'T':
PL_tainting = TRUE;
s++;
@@ -2373,6 +2375,11 @@ Perl_moreswitches(pTHX_ char *s)
PL_doswitches = TRUE;
s++;
return s;
+ case 't':
+ if (!PL_tainting)
+ Perl_croak(aTHX_ "Too late for \"-t\" option");
+ s++;
+ return s;
case 'T':
if (!PL_tainting)
Perl_croak(aTHX_ "Too late for \"-T\" option");