Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
Perl: the Markov chain saw
 
PerlMonks  

Re: Re: Persistent environment (Windows)

by idnopheq (Chaplain)
on Apr 10, 2001 at 12:49 UTC ( [id://71317]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Re: Persistent environment (Windows)
in thread Persistent environment (Windows)

This is correct. The line
system("set monkeylikes=flinging poo");
sets %monkeylikes% for that system call only. You would need Win32::AdminMisc to set the variable permanently, or do
$ENV{'MonkeyLikes'} = "bananas"; print "$ENV{'MonkeyLikes'}\n"; system("echo %monkeylikes%"); $ENV{'MonkeyLikes'} = "flinging poo"; system("echo %monkeylikes%");
for on-the-fly while-the-script-executes kind-of stuff. It yields

bananas
bananas
flinging poo

I believe from the parent post that this is what you are looking for, but that is just my opinion. I could be wrong.

HTH
Dex

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://71317]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.