Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Deleting windows environment variables

by Chady (Priest)
on Aug 19, 2004 at 11:52 UTC ( #384262=note: print w/replies, xml ) Need Help??


in reply to Deleting windows environment variables

Instead of looking for what to delete, why not keep only what you want ?

BEGIN { my %e = %ENV; %ENV = ( PATH_INFO => $e{PATH_INFO}, QUERY_STRING => $e{QUERY_STRING}, REMOTE_ADDR => $e{REMOTE_ADDR}, etc... ); }

He who asks will be a fool for five minutes, but he who doesn't ask will remain a fool for life.

Chady | http://chady.net/

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2023-12-11 12:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (41 votes). Check out past polls.

    Notices?