no can do Max, unless you provide for it in the shell-script that calls the perl program.
See here for example (don't know if this is a legal link - but it explains it pretty well): http://www.vsu.ru/~reb/lib
So you could do something like this:
#!/bin/sh
PATH=`perl modifypath.pl $PATH`
In this case the perl-script could take the current value of PATH and "print" the new value of PATH, which in turn is used to modify the parents environment.
Hope this helps
Tobias
Main Topics
Browse All Topics





by: BlackDiamondPosted on 2002-10-30 at 10:13:12ID: 7388613
$ENV{KEY} = VALUE;
`setenv KEY = $ENV{KEY}`