$ENV{ PATH } = '/bin:/usr/bin'; # or whatever you need $ENV{ SHELL } = '/bin/sh' if exists $ENV{SHELL};