Nishi Prafull wrote: > Hi: Hello,
> 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. You probably want (untested): $ENV{ TEMPHOME } = '/tmp'; John -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>