add PERL envs to set_environment