in reply to Re: Strange problem with Windows 7 command line and perl
in thread Strange problem with Windows 7 command line and perl

You need to start a new command line after any changes to these environment variables , hencyh why it work from your new powershell instance.

  • Comment on Re^2: Strange problem with Windows 7 command line and perl

Replies are listed 'Best First'.
Re^3: Strange problem with Windows 7 command line and perl
by stevieb (Canon) on Feb 12, 2017 at 16:28 UTC

    Yep. Windows has an 'interesting' way of handling environment variables. One has to go pretty low-level with the Windows API to attempt to make it "Do The Right Thing", but it's just far easier to close the cmd window and open a new one. With that said, similar action can be seen on *nix as well in many cases...

    This isn't a Strawberry Perl issue. It'll happen with any software that changes ENV.