in reply to Where does %ENV come from?

Agreeing with all that Elian has said, there's another common technique to set up one or more environment variables "automatically", and that's the use of a wrapper.

Check to see if oldperl isn't a wrapper program (either a shell script or a binary) that sets up some environment variables, and then calls the real perl binary.

Abigail