Perl Monk, Perl Meditation | |
PerlMonks |
Re: How to run perl5.21.3 as "perl"by ikegami (Patriarch) |
on Aug 18, 2014 at 22:01 UTC ( [id://1097912]=note: print w/replies, xml ) | Need Help?? |
which is a utility rather than a shell command in sh and sh-derived shells. As such, it knows nothing of the shell's aliases and such. It just searches the path. To find out what bash will execute when you type perl, use type perl. It will tell you if it's an alias. It will tell you if it's "hashed", which is to say cached. The cache can be cleared using hash -r. Update: Added "in sh and sh-derived shells".
In Section
Seekers of Perl Wisdom
|
|