Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

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

by ikegami (Pope)
on Mar 09, 2008 at 22:28 UTC ( #673141=note: print w/ replies, xml ) Need Help??

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

You could use local *ENV; to remove the magic from %ENV, making it a normal per-thread variable.

Comment on Re: Populate CGI from HTTP::Request wo/ using %ENV ?
Select or Download Code
Replies are listed 'Best First'.
Re^2: Populate CGI from HTTP::Request wo/ using %ENV ?
by renodino (Curate) on Mar 10, 2008 at 00:16 UTC
    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
      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?

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (13)
As of 2015-11-25 20:05 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (689 votes), past polls