|laziness, impatience, and hubris|
windows environment variable regressionby mpersico (Beadle)
|on Aug 12, 2013 at 18:24 UTC||Need Help??|
mpersico has asked for the
wisdom of the Perl Monks concerning the following question:
Using the Win32::TieRegistry, I did:
$env->SetValue('PERL_PATHS', $new_dirs)where $new_dirs contains the new paths for strawberry perl.
I then did
and then rebooted the machine. In a command window, PERL_PATHS was set properly, but PATH looked like
Path=C:\Sybase\DBISQL\bin;C:\Sybase\DataAccess64\...;C:\Program Files\Microsoft SQL Server\110\DTS\Binn\;%PERL_PATHS%i.e.; no expansion. I then went into the Environment Variables dialog, deleted %PERL_PATHS% from PATH, saved, when back in, added it again and when I looked at PATH in a new command window, I got the expansion.
Does anyone know what else you have to do programmatically besides add a variable to another variable to get expansion to occur? Thanks