Problems? Is your data what you think it is? | |
PerlMonks |
Re: setting perl ENV from fileby herveus (Prior) |
on Sep 16, 2003 at 17:56 UTC ( [id://291902]=note: print w/replies, xml ) | Need Help?? |
Howdy!
I faced a similar question in a Korn shell environment. After trying to be tricky and parse the stinker, I realized that the simple approach was superior:
Pass the path to the source file to the sub and it populates %ENV... I use backtick substitution to get the shell to evaluate the profile and dump its environment in a reliable format. C shell would require some modifications to the details, but the basic structure still stands.
yours,
In Section
Seekers of Perl Wisdom
|
|