Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: Populate CGI from HTTP::Request wo/ using %ENV ?

by renodino (Curate)
on Mar 10, 2008 at 00:16 UTC ( #673152=note: print w/ replies, xml ) Need Help??


in reply to Re: Populate CGI from HTTP::Request wo/ using %ENV ?
in thread Populate CGI from HTTP::Request wo/ using %ENV ?

Ah, yes! Thnx! Alas, I'll have to copy out the current %ENV into a temp, then copy back into the local'ized version, but that still makes things much easier.


Perl Contrarian & SQL fanboy


Comment on Re^2: Populate CGI from HTTP::Request wo/ using %ENV ?
Re^3: Populate CGI from HTTP::Request wo/ using %ENV ?
by ikegami (Pope) on Mar 10, 2008 at 03:00 UTC
    You can skip the temp:
    local *ENV = { %ENV };

    Just to be clear, child processes and forks won't see any change made to %ENV while this local is in effect.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (10)
As of 2014-09-18 18:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (120 votes), past polls