CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Intermediate:
910926 - what's the difference between -T and -t?



Dec 15, 2012, 11:41 PM

Post #1 of 2 (3732 views)
910926 - what's the difference between -T and -t? Can't Post

in the first line of perl script, i see:
#!/usr/bin/perl -wT
i think if i use -wT instead of -wt, it may cause the script to stop at a specified line which taint mode is checked. while if i use -wt just a warning is generated and execution of the perl script is not stopped.
am i right?

Veteran / Moderator

Dec 16, 2012, 7:31 AM

Post #2 of 2 (3730 views)
Re: [hamidi] 910926 - what's the difference between -T and -t? [In reply to] Can't Post

As I wrote on your cross post on the dev shed forum, yes, that is more or less the basic idea.

From the Perlrun manpage documentation:



Like -T, but taint checks will issue warnings rather than fatal errors. These warnings can now be controlled normally with 'no warnings qw(taint)'.

Note: This is not a substitute for -T ! This is meant to be used only 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 -T.

See for more details.

BTW, the -w option should no longer be used for new code, use the 'use warnings' pragma instead.


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives