On 9/27/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > can't you set the environmental variables for the parent shell > by running a script as a . or here file? snip
When you use Korn, Bourne, BASH, etc. and say ". " or "source " before a script, it runs in the current process (i.e. the interpreter is the same one that responds to you interactively). Any command in the script is handled as if you had typed it into the command line. This is why shell scripts run with ". " can modify the environment. If your shell could execute Perl code then Perl would be able to modify the environment as well, but most shells cannot execute Perl code natively (the only ones I am aware of are zoidberg* and psh**) and must open a new process for the Perl interpreter. * http://search.cpan.org/dist/Zoidberg/lib/Zoidberg.pm ** http://sourceforge.net/projects/psh/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/