When I run
perl -e 'which("clang")'
in Windows Command Prompt I get an empty line, but on Linux I get:
Undefined subroutine &main::which called at -e line 1.
I am asking because I am trying to figure out why which
does not work in OpenSSL build script:
# see if there is NDK clang on $PATH, "universal" or "standalone"
if (which("clang") =~ m|^$ndk/.*/prebuilt/([^/]+)/|) { ... }
where the condition is always false even if clang
is in the PATH.