Re: Env for Cmds run in backticks

2001-10-05 Thread Luke Bakken
He wants to affect the environment of the process he's calling. Try this: $frazzle = 'exported string'; $ENV{'FRAZZLE'} = $frazzle; $output = `ksh -c \'print \$FRAZZLE\'`; print $output; On Thu, 4 Oct 2001, Brett W. McCoy wrote: > On Thu, 4 Oct 2001, Kingsbury, Michael wrote: > > > Is there

RE: Env for Cmds run in backticks

2001-10-04 Thread Helmut Steinbach (QED)
> -Original Message- > From: Gary L. Armstrong [mailto:[EMAIL PROTECTED]] > Sent: Friday, October 05, 2001 3:09 AM > To: [EMAIL PROTECTED] > Subject: RE: Env for Cmds run in backticks > > > I would guess you are actually asking about exportin

RE: Env for Cmds run in backticks

2001-10-04 Thread Gary L. Armstrong
I would guess you are actually asking about exporting system environment variables? I'm new to this but here's my idea, setting them on the system directly, using PATH as an example: `PATH=$PATH:/usr/bin/perl` `export $PATH` or maybe `export PATH=/usr/bin:/etc:.` I don't do a lot with env var

Re: Env for Cmds run in backticks

2001-10-04 Thread Brett W. McCoy
On Thu, 4 Oct 2001, Kingsbury, Michael wrote: > Is there a way to export perl variables for use when run in backticks? What do you mean? Variables interpolate inside of backticks (unless you are silly enought to do qx'', and then they won't). -- Brett