Help for this page
use File::Find::Rule; sub in_path { ... my @files = File::Find::Rule->file()->name($cmd)->maxdepth(1)->in( s +plit /:/, $path ) or return 'not found'; return grep(-x $_,@files) ? 'exe' : 'plain'; }
return File::Find::Rule->file()->executable->name($cmd)->maxdepth(1)-> +in( split /:/, $path ) ? 1 : undef;