#!/usr/bin/perl
use strict;
use warnings;
my $path = “toolPath”;
print $ENV{‘PATH’},”\n”;
$ENV{‘PATH’} = $ENV{‘PATH’}.”:”.$path;
print $ENV{‘PATH’},”\n”;
It is not possible to change enviromental variables for subsequent processes using Perl.
Posted in Perl on March 28, 2012| Leave a Comment »
#!/usr/bin/perl
use strict;
use warnings;
my $path = “toolPath”;
print $ENV{‘PATH’},”\n”;
$ENV{‘PATH’} = $ENV{‘PATH’}.”:”.$path;
print $ENV{‘PATH’},”\n”;
It is not possible to change enviromental variables for subsequent processes using Perl.