[SunHELP] (no subject)
Nicholas Dronen
ndronen at frii.com
Wed Apr 3 12:21:21 CST 2002
On Wed, Apr 03, 2002 at 11:52:54AM -0500, Eric LeBlanc wrote:
> On Wed, 3 Apr 2002, Luis Palacios Palomino wrote:
>
> > more perl_script.pl
> > ...
> > my $ORACLE_HOME = "/some_path/8i";
> > `export $ORACLE_HOME`;
> > ...
>
> that thing works ?? I alway thinking the export is a built-in command
> from bash / sh, and cannot be called by perl.
There's no way this can work. He's using backticks, which
calls a subshell. When the subshell exits, the variable
is lost (putting aside the matter that he's not using the
correct syntax for export).
He should be using:
$ENV{'ORACLE_HOME'} = "/home_path/8i";
Regards,
Nicholas Dronen
More information about the SunHELP
mailing list