in reply to set environment for parent process
Unfortunately there's no similarly easy mechanism in Perl, because the scripts are written in the shell scripting language, Perl doesn't include an interpreter for that language. Instead, you have to parse them yourself, as the example linked to above does; essentially it implements a very small and simplistic shell interpreter for the small subset of the shell language you're interested in (setting environment variables).
|
|---|