Windows does not clear the environment variables daily by default, therefore it's likely something in your corporate settings resetting the environment variables.
If this is the case, you have a few options:
- Get the network admins to modify the script so that it doesn't reset them (or includes the
PERL5LIB
directories you want to specify). - Write another daily task, running after their daily task, which re-adds the variables on your local machine.
- Wrap your perl scripts with a Windows batch file, or run them with
perl -I
to specify the library at run time. - Run your perl scripts from Cygwin bash or mingw bash, which won't use your computer's global environment variables.