http://www.perlmonks.org?node_id=932656


in reply to Source command in perl script

Shell::Source will do this for you.