in reply to [OT] 'perl' is not the 'perl' reported by 'which perl'

Did you check if there are any aliases in bash?

What happens if you try to call Perl from Perl via qx?

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

  • Comment on Re: [OT] 'perl' is not the 'perl' reported by 'which perl'

Replies are listed 'Best First'.
Re^2: [OT] 'perl' is not the 'perl' reported by 'which perl'
by perlfan (Parson) on Aug 21, 2020 at 15:46 UTC
    alias is a good thing to check (alias -p). Similarly, a bash function perl defined in your environment could cause a similar effect and are not reported by alias -p. If that's not expected and it exists, then something fish is happening for sure. I don't know off the top of my head how to see what bash functions are currently defined. I believe which is aware of aliases, not sure about bash functions. Does which which what you expect? Maybe try it with the absolute path.