Since the patterns are compiled by insertion into m//, make sure that any / are escaped. Be careful with using quotemeta() for this, since you dont want to espace special regex char, e.g. ^, $, etc.
a portable function to search for executables on the system.
Accepts a single argument which is the name of the executable to search for. Returns the full path to the executable if found, an empty string otherwise.
Parts of the implementation are borrowed from modperl-2.0/lib/Apache/Build.pm and modified to take into an account Win32s PATHEXT environment variable or the hardcoded list of known executable extensions for Win9x which doesnt have this variable.
Stas Bekman <stas (at) stason.org>
|perl v5.20.3||DOCSET::UTIL (3)||2005-09-02|