sophate has asked for the wisdom of the Perl Monks concerning the following question:

Dear Monks,

I have a Perl CGI script running on an Apache server. I need to pass some custom environment variables to the Perl CGI script. I've set and exported the env variables in the Apache start script. However, I'm not able to get it back from the Perl CGI script.(I dumped all env variables 'visible' to the CGI script but didn't see the ones I need). Any suggestion how I can pass custom env variables to Perl CGI? Thanks in advance.

  • Comment on Pass custom environment variables to Perl CGI?

Replies are listed 'Best First'.
Re: Pass custom environment variables to Perl CGI?
by Corion (Patriarch) on Jul 26, 2012 at 12:25 UTC
Re: Pass custom environment variables to Perl CGI?
by MidLifeXis (Monsignor) on Jul 26, 2012 at 12:40 UTC

    To follow up on Corion's post, see the SetEnv and PassEnv directives.

    --MidLifeXis