invoking a script (not in a subshell) 

> I have a perl script to change environment variables,
> [...]
> Now, what I am trying to figure out is how I can force my Perl script to
> run in the current shell, instead of forking a subshell.

One thing you could do is have the Perl script output shell commands that set the variables, and eval it from the shell. So have your Perl script output something like this (assuming it is to be run from a Bourne-like shell such as sh, ksh or bash):

PATH=.:/bin:/usr/bin; export PATH

and then from your shell script do:

eval `perlscript.pl`

Diego

documented on: 06-09-99 19:17:57