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

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

I am trying to use a path from the Bash terminal in my Perl script. When I run the script from the command line as the user, the scripts picks up the variable correctly

$cwd = $ENV{'DYNBLDHOME'};

But when I run the script through Apache (as the same user) $cwd is empty

The environmental DYNBLDHOME is set in ~/.bashrc

I'm not sure where the disconnect is, it is Perl or Apache that is the issue?

I didn't know what to search for, I saw something about mod_env.so in Apache, and that is already enabled