I need to source a shell script file that sets various environment variables. The shell script file isn't simply a set of "export VAR=VALUE" where I can simply parse the file. The script file may be in C-Shell, Korn shell, BASH or a myriad of obscure shells depending on which environment it is running in and which user.
I'm unable to use a wrapper script that sources the file and then calls the Perl script for political reasons. If you're writing a part in *shell, why do you need Perl?
So, infamous and all powerful monks of the Perl multiverse, how do I source a shell script from within a Perl script?