|Perl Monk, Perl Meditation|
Setting Env Variable questionby blackadder (Hermit)
|on Jul 17, 2002 at 16:10 UTC||Need Help??|
blackadder has asked for the wisdom of the Perl Monks concerning the following question:
This is a simple problem, for which I thought that the answer would be straight forward, however it wasn't (well for me anyway). The problem goes like this :
in M$ Windows, I go to the ‘start button’ select run and type in cmd, then on the cmd window I type the command 'set' and I get a display of the environment values. Also, when I do 'set var = 2000' and press enter and type set again I get the same display with the value I have just inputted showing in there as expected. However I tried to automate this process and I wrote the following script to do just that. But it did not work.
Also if I type command instead of cmd, will this make any difference.
I thought this code should be sufficient to do this simple job, I do not know if I have missed something simple or what. I have tried a combination of back ticks double and single quotes to no avail. Can someone please tell what the heck I am doing wrong?
Thanks in advance Guys