Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

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

by LanX (Saint)
on Aug 21, 2020 at 14:16 UTC ( [id://11120960]=note: print w/replies, xml ) Need Help??


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 (Vicar) 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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11120960]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2024-04-23 15:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found