anaconda_wly has asked for the wisdom of the Perl Monks concerning the following question:
print "$ENV{PATH} "."\n"; my $install_path = "c:\\bin"; if( !($ENV{PATH} =~ /c:\\bin/i) ) { print "1 "."\n"; $ENV{PATH} .= ";$install_path"; print "$ENV{PATH} "."\n"; }
print shows the path already been added. But when I check by opening a new session type path command or open registry:HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment The path is still the old one. Anyone know why? Need save $ENV{PATH}?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: ENV Path didn't take effect
by BrowserUk (Patriarch) on Apr 03, 2013 at 10:38 UTC | |
|
Re: ENV Path didn't take effect
by marto (Cardinal) on Apr 03, 2013 at 10:40 UTC | |
|
Re: ENV Path didn't take effect
by Anonymous Monk on Apr 03, 2013 at 10:49 UTC | |
|
Re: ENV Path didn't take effect
by vinoth.ree (Monsignor) on Apr 03, 2013 at 11:02 UTC | |
by marto (Cardinal) on Apr 03, 2013 at 11:09 UTC | |
by Anonymous Monk on Apr 03, 2013 at 11:17 UTC | |
|
Re: ENV Path didn't take effect
by locked_user sundialsvc4 (Abbot) on Apr 03, 2013 at 12:55 UTC | |
by Anonymous Monk on Apr 03, 2013 at 23:32 UTC | |
by anaconda_wly (Scribe) on Apr 06, 2013 at 10:02 UTC |