Same performance improvement for apppath as for preppath.
This commit is contained in:
parent
69187e640a
commit
7949fda3ba
|
@ -38,7 +38,6 @@ Peter J. Holzer <hjp@hjp.at>.
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use Getopt::Long;
|
use Getopt::Long;
|
||||||
use Pod::Usage;
|
|
||||||
|
|
||||||
my $check;
|
my $check;
|
||||||
my $debug;
|
my $debug;
|
||||||
|
@ -46,7 +45,11 @@ my $var = 'PATH';
|
||||||
GetOptions("check" => \$check,
|
GetOptions("check" => \$check,
|
||||||
"debug" => \$debug,
|
"debug" => \$debug,
|
||||||
"var=s" => \$var,
|
"var=s" => \$var,
|
||||||
) or pod2usage(2);
|
) or do {
|
||||||
|
require Pod::Usage;
|
||||||
|
import Pod::Usage;
|
||||||
|
pod2usage(2);
|
||||||
|
};
|
||||||
|
|
||||||
my $path = $ENV{$var} || '';
|
my $path = $ENV{$var} || '';
|
||||||
my @path = split(/:/, $path);
|
my @path = split(/:/, $path);
|
||||||
|
|
Loading…
Reference in New Issue