On Wed, Jul 11, 2001 at 09:20:47PM -0500, Jay Strauss wrote: > Is this only a perl thing? > > Cause I can have 2 shell programs and from the 1st shell program, I can > "source" the 2nd and change the parent's shell. > > Jay This is an 'everything' thing, including bash. This answers my question as to why you thought you were able to change the parent's environment from the script (which is quite impossible). When you 'source' a script, you are not running a seperate process; it's more like C's #include directive. You are actually including the source code of the other script as part of the currently running process; it's not changing the parent's environment, it's just changing its own. And naturally, source inclusions are only possible within the same scripting envrionment (bash), so you cannot achieve the same affect within Perl. You'll have to approach it in a different way. :( Micah
