http://www.perlmonks.org?node_id=781830


in reply to Re: Pathfinder - find duplicate (shadowed) programs in your PATH
in thread Pathfinder - find duplicate (shadowed) programs in your PATH

Does grep {  ! -d "$dir/$_" && -x _ } not work?

Few hours later, changed second "$dir/$_" with _.

Thanks to toolic for catching the missing quote that I had lost during editing.