I am looking for a way to pass certain environment variables to my CGI scripts.
I have tried both using the Apache SetEnv directive in my .htaccess and also using the [E] flag on a dummy RewriteRule, but neither technique works, I believe because the CGI scripts are running as their own processes via suExec rather than inside mod_perl or the equivalent.
In any case, my particular need is to set the PERL5LIB env. variable to point to my locally installed Perl modules.
I know that I could edit the CGI scripts to have the appropriate "use lib" declarations, but I want to enable my local modules for 3rd party CGI scripts that I am using and am likely to upgrade frequently, so modifying the scripts is not a palatable solution.
Many thanks for any suggestions.