sawanv has asked for the wisdom of the Perl Monks concerning the following question:

Hello all.

This may seem like a lamer question...if so please excuse me.

When I run a script with the taint option, I get the "Too late...." error message. The Camel says this can be solved by making sure that the script begins with the -T first, i.e. #!/user/bin/perl -T followed by other flags.

But I am doing this and still get the same error. This is for scripts as well as CGIs.

Can anyone please advise? Thanks.

Sawan

Replies are listed 'Best First'.
Re: Taint mode problem
by dws (Chancellor) on Feb 09, 2003 at 05:58 UTC
    If you're running IIS, Taint with Perl on NT/IIS might enlight you as to cause and remedy.

    When running scripts from the command line, use

    perl -T <script>
    instead of relying on
    #!perl -T
    at the top of the script.