in reply to Re^6: Devel::NYTProf: "undefined symbol: PL_stack_sp" error
in thread Devel::NYTProf: "undefined symbol: PL_stack_sp" error

type or which?
See also: Re^3: [OT] 'perl' is not the 'perl' reported by 'which perl' (which vs type References) (updated with extra references including KornShell whence command and POSIX command command [sic]).

Replies are listed 'Best First'.
Re^8: Devel::NYTProf: "undefined symbol: PL_stack_sp" error
by bliako (Abbot) on Aug 28, 2021 at 06:01 UTC

    oh thank you. It's that in my system type cpanm's output is verbose and breaks the above command with this output: cpanm is /usr/local/bin/cpanm . and which doesn't. But this works (only if path does not contain spaces): head -n 1 "$( type cpanm | awk '{print $NF}')"

    It looks type has been buried under the weight of its success. Next step: unicode quotes and ellipses.

      It looks type has been buried under the weight of its success

      Ha ha! It's been twenty years since I looked at this in any detail, just kept on happily using the good ol' bald type command. I was surprised just now (and not in a good way) to learn of many more ways to do it:

      I don't think this is an impressive application of TMTOWTDI. :)

      Sorry, I meant type -p perl. Been a while.

      Anyway, I asked for the perl used to installed the module, and you haven't provided. (Oops, forgot the leading "What", but you seem to understand it was a request)

      Seeking work! You can reach me at ikegami@adaelis.com