in reply to How to "source" a shell file in Perl?

A quick search seems to show that doing what you want directly may not be possible: Re: Changing parent process environment variable

If that node (from 2007) is still correct, my first instinct would be that you do in fact need to wrap the shell script that you want to get the environment from...

  • Comment on Re: How to "source" a shell file in Perl?