39
37
return $_cmd if (-x $_cmd or $_cmd = MM->maybe_command($_cmd));
41
39
for my $dir ((split /$Config::Config{path_sep}/, $ENV{PATH}), '.') {
42
41
my $abs = File::Spec->catfile($dir, $_[1]);
43
42
return $abs if (-x $abs or $abs = MM->maybe_command($abs));