![]() |
|
laziness, impatience, and hubris | |
PerlMonks |
Re: How do I set env. Variables from Perl with shell scriptby JavaFan (Canon) |
on May 04, 2009 at 13:22 UTC ( [id://761719]=note: print w/replies, xml ) | Need Help?? |
It depends on your OS. Probably the easiest (as, requires the fewest lines of code changes) is to run it on VMS, as that OS allows child processes to update the environment variables of the parent.
If you are running a Unix of a Windows flavour, you may have to result to trickery: for instance, by creating a wrapper (shell) program that sources your existing shell script, then executes your Perl program.
In Section
Seekers of Perl Wisdom
|
|