Hi ,
Try below.
If you are using csh  for executing perl script ------>   system("setenv
TEMPHOME /tmp ");
If your using bash for executing perl script --------->   $TEMPHOME =
"/tmp";

system("export $TEMPHOME");


Arjun

Deserve before you desire







-----Original Message-----
From: Nishi Prafull [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 19, 2005 1:49 AM
To: Perl Beginners List
Subject: set environment variables


Hi:

I need to run a script noted by $cmd1 from within perl but before that i
need to set the environment variable. how can i do it? I tried my
$TEMPHOME = "/tmp"; system($cmd1);

But the script still complains the $TEMPHOME is not set. Thanks.

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>





Confidentiality Notice

The information contained in this electronic message and any attachments to 
this message are intended
for the exclusive use of the addressee(s) and may contain confidential or 
privileged information. If
you are not the intended recipient, please notify the sender at Wipro or [EMAIL 
PROTECTED] immediately
and destroy all copies of this message and any attachments.

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to