mpersico has asked for the wisdom of the Perl Monks concerning the following question:
$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 = "$path;\%PERL_PATHS\%"; $env->SetValue('Path', $path);
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: windows environment variable regression
by BrowserUk (Patriarch) on Aug 12, 2013 at 18:48 UTC | |
by mpersico (Monk) on Aug 12, 2013 at 21:12 UTC | |
by BrowserUk (Patriarch) on Aug 12, 2013 at 21:54 UTC | |
by mpersico (Monk) on Sep 23, 2013 at 00:48 UTC | |
by BrowserUk (Patriarch) on Sep 23, 2013 at 01:05 UTC | |
|
Re: windows environment variable regression
by Jim (Curate) on Aug 12, 2013 at 22:00 UTC | |
by Anonymous Monk on Aug 12, 2013 at 23:52 UTC | |
by mpersico (Monk) on Sep 23, 2013 at 00:49 UTC | |
by mpersico (Monk) on Sep 23, 2013 at 00:49 UTC |