Communities for your favorite technologies. Explore all Collectives
Now available on Stack Overflow for Teams! AI features where you work: search, IDE, and chat.
Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Explore Teams
Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Get early access and see previews of new features.
I was on Perlmonks and found this great listing:
http://www.perlmonks.org/?node_id=627015
But it was missing "which", the function that searches for an executable in all the directories in your PATH. (I am porting a Perl script to Windows.)
Is there a Perl module that simulates this?
which
File::Which. Always check CPAN! :)
File::Which
Have you seen this Snippet?
which (for Windows) in pure perl
The follow-up points to the module File::Which on CPAN.
which
in PerlPowerTools, and I have my own tool I call rhich that's does a similar job but with regexes to match programs.