On Tue, 27 Jul 2004 11:58:51 -0400, Bob Showalter wrote
>
> It's really not a Perl issue per se. I assume you're talking about variables
> used by Oracle libraries, like ORACLE_HOME and ORACLE_SID.
>
> I advise you to *not* attempt to set or monkey with these variables inside
> the Perl script. T
Good point in fact Oracle (for example) recommends setting the environment before you
even install Oracle. To do it any other way invites trouble and as Oracle would say,
you're on your own :-)
> jason corbett wrote:
> > How does one go about assuring that the environment variables are
> > pro
jason corbett wrote:
> How does one go about assuring that the environment variables are
> properly set in perl? I read several books, but none go in depth
> about how to write a script that includes all the required variables,
> that way nothing gets left out.
It's really not a Perl issue per se.
Paul Kraus wrote:
You can access all the env variables like this...
$ENV{ 'VAR' }
example
my $home = $ENV{ 'HOME' };
print "$home\n";
I have never tried to change them but I would assume
that it would work.
HTH,
Paul Kraus
On Tue, Jul 27, 2004 at 07:29:45AM -0700, jason corbett wrote:
How does one
You can access all the env variables like this...
$ENV{ 'VAR' }
example
my $home = $ENV{ 'HOME' };
print "$home\n";
I have never tried to change them but I would assume
that it would work.
HTH,
Paul Kraus
On Tue, Jul 27, 2004 at 07:29:45AM -0700, jason corbett wrote:
> How does one go about as
How does one go about assuring that the environment variables are properly set in
perl? I read several books, but none go in depth about how to write a script that
includes all the required variables, that way nothing gets left out.
Please advise.
JC
[snipet]
#!/usr/bin/perl -w
$ENV{"