several ways: write a source file with your configs in it, then you can do stuff like use foo; or require foo; and they wil be loaded, you could write a small module, or use config files check into the config.pm module, never used it so I am not sure if it is what your looking for if you need help with the above methods, let me know
-----Original Message----- From: Steve Main [mailto:[EMAIL PROTECTED]] Sent: Friday, October 04, 2002 11:03 AM To: Kipp, James; Steve Main; [EMAIL PROTECTED] Subject: RE: Environment setup Thanks for the quick reply James, How would I set this up in a script and have all the other scripts be able to use it? -----Original Message----- From: Kipp, James [ mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> ] Sent: Friday, October 04, 2002 7:33 AM To: 'Steve Main'; [EMAIL PROTECTED] Subject: RE: Environment setup you can use the %ENV hash example: $ENV{ORACLE_HOME} = "/opt/oracle/product/9.0.1"; > -----Original Message----- > From: Steve Main [ mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> ] > Sent: Friday, October 04, 2002 10:23 AM > To: [EMAIL PROTECTED] > Subject: Environment setup > > > Hello list, > > I have an Oracle framework written in Korn shell scripts that I am > attempting to re-write in Perl. I am having trouble figuring out > how to "source" in environment variables. For the shell > scripts, I have > a script that sets all of the global variables and then each script in > the framework "sources" that script so that all the scripts > start with the same environment. The gist of what I need is to > keep the global variables (like the log directory) in one place > and not in each script. Can anyone tell me how this can > be accomplished in Perl? > > thanks for you time > > Steve > >