in reply to Parent Process Environment
You can then eval the string representation of the anonymous hash you captured into $env. You may have to suppress output from the shell script.my $env = `envscript.sh && perl -MData::Dumper -e '$Data::Dumper::Ters +e=1; print Dumper \%ENV'`;
And on some platforms, %ENV is magical, so you might not be able to pick up the whole environment. All you can do, is test.
|
|---|