--- Robert Bunn <[EMAIL PROTECTED]> wrote:
> Yup.
> 
> Too late for -T.
> That's what it says whenever I put the -T on my shebang line.

What's going on is that Perl needs to be started in taint mode and *then* the script 
gets fed to
it.  If you're trying to run Web applications with Apache, the shebang line is read 
and the
program on the shebang line is started with any switches listed there.  However, if 
you are using
IIS, Personal Web Server, or merely running the script through the command line, Perl 
is started
first and then the script and the switches (in this case, -T) are fed to it.  Since 
Perl needs to
be started with taint mode enabled, it will fail if it's already started and then sees 
the taint
switch.

If you're running from the command line, try this:

    perl -T somescript.pl

If you do it that way, Perl is started in taint mode.  The nice thing about this is 
that you
*won't* have to remove the -T switch from the shebang line, thus ensuring that you 
won't forget to
add it back in.

Cheers,
Curtis Poe

=====
Senior Programmer
Onsite! Technology (http://www.onsitetech.com/)
"Ovid" on http://www.perlmonks.org/

__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to