Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Re: perlsec question

by chip (Curate)
on Dec 14, 2001 at 09:57 UTC ( [id://131905]=note: print w/replies, xml ) Need Help??


in reply to Re: perlsec question
in thread perlsec question

I should think that clearing %ENV would eventually bite you in the butt when you start using the code in question to run programs that depend on the environment.

Granted there are times when it's appropriate -- running children from a setuid program, for example -- but most of the time it's just too big a hammer.

    -- Chip Salzenberg, Free-Floating Agent of Chaos

Replies are listed 'Best First'.
Re: Re: Re: perlsec question
by belg4mit (Prior) on Dec 14, 2001 at 20:23 UTC
    When all you have is a hammer everything looks like a nail :-D. Except of course having a swiss army chainsaw there is more than a hammer at our disposal. However, it surely cannot be too difficult to later clean and pass other environment variables as needed. Else one could say not clearing %ENV will eventually bite you in the butt because you have no idea what some clever author of an external program will rely upon and do with an environment variable ;-).

    --
    perl -p -e "s/(?:\w);([st])/'\$1/mg"

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-24 23:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found