http://qs321.pair.com?node_id=673152


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 ?

Replies are listed 'Best First'.
Re^3: Populate CGI from HTTP::Request wo/ using %ENV ?
by ikegami (Patriarch) 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.