tos has asked for the wisdom of the Perl Monks concerning the following question:
what's to do for assigning a perl-script-result to a Windows/DOS-box-environmentvariable ? On unix i can do it with the perl-script enclosed in backquotes. like
For the DOS-box i don't know a similar statement.# export X=`perl -we 'print "foobar"'` # echo $X foobar
Or does there perhaps exist a special perl-way to set environment-vars in the calling (father-) process ?
thanks
p.s.: does "foobar" mean something special or is it merely a nonsense word ? I read it a dozen times in computer literature. And the guys in Spielbergs "Private Ryan" often used it, too.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: setting environment-variables
by fglock (Vicar) on Jun 12, 2003 at 14:44 UTC | |
|
Re: setting environment-variables
by Mr. Muskrat (Canon) on Jun 12, 2003 at 15:20 UTC | |
|
Re: setting environment-variables (vienv)
by tye (Sage) on Jun 12, 2003 at 15:32 UTC | |
|
Re: setting environment-variables
by Anonymous Monk on Jun 12, 2003 at 15:24 UTC | |
|
Re: setting environment-variables
by meredith (Friar) on Jun 12, 2003 at 18:25 UTC |