sorry. I must've misinterpreted your question.
"Setting a value in %ENV changes the environment for child processes.
...
To remove something from your environment, make sure to use delete instead
of undef."
page 138 of the Programming Perl book/2e
Sorry, I can't help you any more than that, I'm afraid. Child processes
should inherit the environment from the parent, but can't change the
environment of the parent, which makes sense when you think about
programming the UNIX environment.
Anyone else wanna take a stab at this?
FL
On Wed, 11 Jul 2001, Jay Strauss wrote:
> Except, I'm not trying to change my login shell, I'm trying to change the
> shell in which the perl program runs.
>
> Jay
>
> ----- Original Message -----
> From: "Foo Lim" <[EMAIL PROTECTED]>
> To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> Sent: Wednesday, July 11, 2001 4:51 PM
> Subject: Re: [vox-tech] Calling a shell pgm from perl to change ENV
>
>
> > On Wed, 11 Jul 2001, Jay Strauss wrote:
> >
> > > One of a couple of more questions. But to preface, thanks for all the
> help
> > > so far
> > >
> > > I have a shell program with creates/changes the caller's environment.
> > >
> > > I want to call this from a perl program (and have the environment
> setup)
> > > but
> > > the changes never exist after the execution. The script is being
> called,
> > > and during the script I do some "echo"s and everything is fine. Can't I
> do
> > > this??? for example
> > > [...]
> >
> > Changing %ENV within the script will only change the child process'
> > environment. It does not change the parent process' env. I don't know
> > how to do this...yet, but I hope this puts you on the right track.
> >
> > FL