Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: To taint or not to taint?

by ELISHEVA (Prior)
on Mar 22, 2009 at 06:18 UTC ( #752351=note: print w/replies, xml ) Need Help??


in reply to To taint or not to taint?

I like to write code that works under taint because it increases the number of contexts where my code can be used.

You may already be aware of this, but one can significantly reduce the number of pointless taint complaints simply by setting $ENV{PATH}=''; $ENV{CDPATH}=''; or other known (untainted/detainted) value. This applies to a few other variables, like IFS, as well. See perlsec for details.

Best, beth

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://752351]
help
Chatterbox?
[choroba]: I'm curious which part of your signature do they find offensive.
[LanX]: they?
[LanX]: click!
[choroba]: they
[LanX]: why do you think it's more than one person?
[Your Mother]: Because we are LEGION! Fix YOUR SIG SIG BLOCK!!!!
[Your Mother]: Forgot to sign in as my sockpuppet, how embarrassing!
[1nickt]: pryrt I am creating a Type to check valid user IDs, which must be a whole number greater than or equal to zero. I would like to disallow 1.0 but because of this behaviour, by the time it is checked by the constraint, it *is* an Int.
[LanX]: should this be considered? Re: Parsing .txt into arrays

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (15)
As of 2017-05-24 20:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?