Same performance improvement for apppath as for preppath.

This commit is contained in:
hjp 2007-03-05 18:18:15 +00:00
parent 69187e640a
commit 7949fda3ba
1 changed files with 5 additions and 2 deletions

View File

@ -38,7 +38,6 @@ Peter J. Holzer <hjp@hjp.at>.
use strict;
use Getopt::Long;
use Pod::Usage;
my $check;
my $debug;
@ -46,7 +45,11 @@ my $var = 'PATH';
GetOptions("check" => \$check,
"debug" => \$debug,
"var=s" => \$var,
) or pod2usage(2);
) or do {
require Pod::Usage;
import Pod::Usage;
pod2usage(2);
};
my $path = $ENV{$var} || '';
my @path = split(/:/, $path);