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


in reply to How do I set env. Variables from Perl with shell script

I wrote/use Env::Sourced one day when my cpan search foo was weak and I couldn't find any other alternatives. It should do what you need it to do.