I have an evironmental variable that I set in perl, $ENV{HELLO} = 1. I want to call (system or `) an executable that will read and/or set this to a different value. It seems that the initial read works, but the setting appears to only be set for the .exe's children and not visible to the calling perl script.
Is there a way to make this work? That is, ensure that the perl script "sees" the changes made to $ENV within the executable?
FYI: There may be many variables passed in/out that I want to be able to do this with (i.e., not just ONE).
Thanks much!
Is there a way to make this work? That is, ensure that the perl script "sees" the changes made to $ENV within the executable?
FYI: There may be many variables passed in/out that I want to be able to do this with (i.e., not just ONE).
Thanks much!