in reply to Changing an environment variable
Note: this will only affect processes that the Perl script itself starts, using, for example, system or qx, it will not affect any others.use warnings; use strict; my $sep = $^O eq 'MSWin32'?';':':'; $ENV{'PATH'} .= $sep . "directory to be added";
|
|---|