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

My code was running on Apache 2.2 on windows, and is now running on Apache 2.2 on CentOS.

In one of my perl files I have the line:
use ENV; ... my $requestedPath = $ENV{PATH_TRANSLATED};

This now fails on the "use ENV" line, with the following error:
Can't locate ENV.pm in @INC

Now I was pretty sure that there was no ENV.pm to find, as it seemed to be a built-in part of Apache. I did not get this problem on windows, and it vexes me.

I am vexed.

If anyone knows how to include this functionality again, or get it working correctly, then it would go a long way towards me becoming unvexed.

Cheers,

Shug

Replies are listed 'Best First'.
Re: ENV on Apache has disappeared.
by lamprecht (Friar) on Sep 22, 2009 at 06:44 UTC
    Hi,

    should that read  use Env; (Windows FS is case insensitive)?


    Cheers, Christoph
      Thankyou very much!

      The perl monks never fail.

      I am no longer vexed.