in reply to Re: How to run perl5.21.3 as "perl"
in thread How to run perl5.21.3 as "perl"
The problem encountered, and the solution to it, is already acknowledged by aitap couple posts above.
When you enter a command, the shell has to successively perform a number of stat calls, each with a $PATH element (a directory) prepended. In order to cut down on those syscalls, a small short-circuiting cache is kept. In perl parlance, this would be $full_path{$name}.
You can check the current state of path cache with the "hash" builtin. To clear the cache, enter "hash -r". To refresh the cache on a particular command, try e.g. "hash perl".
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: How to run perl5.21.3 as "perl"
by syphilis (Archbishop) on Aug 18, 2014 at 23:20 UTC | |
Re^3: How to run perl5.21.3 as "perl"
by DrHyde (Prior) on Aug 19, 2014 at 10:37 UTC | |
by oiskuu (Hermit) on Aug 19, 2014 at 15:51 UTC | |
by DrHyde (Prior) on Aug 21, 2014 at 11:59 UTC |
In Section
Seekers of Perl Wisdom