Syntactic Confectionery Delight | |
PerlMonks |
Re: Setting Env Variable questionby amphiplex (Monk) |
on Jul 17, 2002 at 16:27 UTC ( [id://182492]=note: print w/replies, xml ) | Need Help?? |
In order to not get a syntax error, you will have to put the argument to system inside double-quotes:
But although I have never used perl on a windows machine, I am pretty sure that this will not do what you want. I think that you expect to see the variable you set in the script after you have run it. This will propably not happen as the script is running inside a forked shell. I don't know if there is any way to set the environment of the calling shell. ---- amphiplex
In Section
Seekers of Perl Wisdom
|
|