http://www.perlmonks.org?node_id=1142686


in reply to Getting system enviornmentals when running CGI

Bottom line: when Apache forks your process, it does not fork a shell. It does create an environment that you can identify, but it (by-design) leaves nothing to chance . . .
  • Comment on Re: Getting system enviornmentals when running CGI