in reply to PERL5LIB not in @INC
but not for whatever process is running the script within Apache.
Use SetEnv to set environment variables within Apache. You can do this at the global config level to have it apply to all scripts.
🦛