in reply to Setting environment variables by reading them from a configuration file
The message being that statements in the BEGIN block are done before any other statements in your script. Try setting your environment variables in there, and then see if you can see those settings inside your script.#!/usr/bin/perl -w BEGIN { $ENV{'ORACLE_HOME'} = "/path/to/oracle"; $ENV{'ORACLE_SID'} = "abc"; } # the rest of your code goes here
HTH.
|
|---|