--- Steve Main <[EMAIL PROTECTED]> wrote:
> I have an Oracle "framework" that I am rewriting in Perl so it will
> be more portable. I am pretty new to Perl (couple of months) and
> I didn't realize that I couldn't "source" a Perl script like
> I can with the Korn shell scripts.
Are you running t
s piece as is
Thanks for your help everyone.
-Original Message-
From: Kipp, James [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 20, 2003 9:15 AM
To: 'Steve Main'; perl beginners
Subject: RE: persisting environment variables
> It's a utility that allows user
> It's a utility that allows users to change their Oracle environments,
> so when they logon they can run the utility and select an Oracle
> environment to set (ORACLE_SID, ORACLE_HOME, etc). It also allows
> them to change environments, say going from DEV to TEST. I
> have a Korn
> shell
> sc
Steve Main wrote:
> Hello list,
>
> Does anyone know how to set an environment variable in Perl and then
> have that variable persist after the Perl script has ended?
>
> I'm working in Unix.
Really can't be done. A process cannot change its parent's environment.
There are various hacks that ca
--- Steve Main <[EMAIL PROTECTED]> wrote:
> Does anyone know how to set an environment variable in Perl and then
> have that variable persist after the Perl script has ended?
> I'm working in Unix.
Variables can be inherited by subshells, but never passed back up to a
parent process. You Perl scr
does this but I was trying to rewrite it in Perl.
Working on Solaris.
-Original Message-
From: Kipp, James [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 20, 2003 8:52 AM
To: 'Steve Main'; perl beginners
Subject: RE: persisting environment variables
>
> Hello l
>
> Hello list,
>
> Does anyone know how to set an environment variable in Perl and then
> have that variable persist after the Perl script has ended?
>
> I'm working in Unix.
>
why not just set the env variable in your unix shell or startup scripts.
what flavor of unix are you working with?
Hello list,
Does anyone know how to set an environment variable in Perl and then
have that variable persist after the Perl script has ended?
I'm working in Unix.
Thanks
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]