in reply to Re^2:[OT] 'perl' is not the 'perl' reported by 'which perl'
in thread [OT] 'perl' is not the 'perl' reported by 'which perl'
This link might be useful for the OP, especially the type command
Ha ha, over twenty years ago I was ordered by our Unix guru at work to never use the C shell and to "always use the type command, never the which command". Being frightened of our Unix guru, I've always followed that advice ... but been surprised many times over the years by folks looking over my shoulder asking "what is the type command?" - my experience has been that most people use the which command and have never even heard of the type command! ... perhaps showing the importance of a descriptive name.
See also:
- why not use which and what to use instead (stackexchange, where the which command is discouraged)
- how is whence different than which (stackexchange question)
- cd external command (stackexchange question)
- What is the Unix command to found out what executable file corresponds to (superuser question)
- Csh considered harmful by Tom Christiansen (1995)
References Added Later
- Unix type command (wikipedia)
- Unix which command (wikipedia)
- POSIX command command (sic) (wikipedia)
- KornShell (wikipedia)
- POSIX type command (opengroup)
- Linux type command (linuxcommand)
- POSIX command command (sic) (opengroup)
- KornShell whence command (mks)
- Re^5: Devel::NYTProf: "undefined symbol: PL_stack_sp" error by ikegami (2021)
- Re^9: Devel::NYTProf: "undefined symbol: PL_stack_sp" error by me (2021)
- (Windows) verbatim command line arguments inside Perl script by LanX (2021)
- $^O empty in windows powershell by WithABeard (2022)
- What is Windows equivalent of the which command in Unix? Is there an equivalent PowerShell command?
- Windows Powershell Get-Command
See Also
In Section
Seekers of Perl Wisdom