Setting it in the current processes' environment should be enough, since any subprocesses inherit their parent's environment.
Although system() does, in fact open a new shell, that shell should inherit your perl script's environment like any other child process (and pass it on to its children).
Update: reasons why this may not be working:
dmm
In reply to Re: environment variable
by dmmiller2k
in thread environment variable
by hotshot
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |