Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Taint mode... use all the time?

by tphyahoo (Vicar)
on Feb 14, 2005 at 11:50 UTC ( [id://430754]=note: print w/replies, xml ) Need Help??


in reply to Taint mode... use all the time?

Thank you, o Monks, for that illuminating discussion of Taint.

Based on what I have read so far, I definitely need to start using taint for some of my work.

I'm a bit confused how to set this up though. I can get taint with

perl -T
from the dos prompt. But I like to control things at the script level. When I "use Taint" in my code, the program dies because there's no taint package installed.

There is a taint package on CPAN. But when I try

ppm install Taint
no repository is found with this package/directive.

Can taint mode only be turned on from the shell with -T? Or does Taint not play nicely with ActiveState and Windows?

Replies are listed 'Best First'.
Re^2: Taint mode... use all the time?
by gellyfish (Monsignor) on Feb 14, 2005 at 12:32 UTC

    You should supply the -T in the shebang line, however if you do so this precludes running the program like:

    perl <scriptname>
    at the command prompt (or elsewhere such as a CGI program on IIS ). There is a small article on overcoming this problem with IIS in the NMS FAQ.

    /J\

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://430754]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-19 22:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found