The Shell::Source allows arbitrary shell scripts, or other programs for
that matter, to be run and their environment to be inherited into a Perl
program.

WWW: https://metacpan.org/release/Shell-Source
