Subject: | caching of path searches |
Date: | Wed, 12 May 2010 08:06:16 +1000 |
To: | bug-IPC-Run [...] rt.cpan.org |
From: | Kevin Ryde <user42 [...] zip.com.au> |
In a test script I tried changing $PATH so as to exercise some code
using IPC::Run with a program found or not found. I had to dig around
to realize IPC::Run caches a found executable.
I think there's probably no need to cache, or only as an option, instead
just execlp each time. If caching then there should be some way to
purge the cache, like the shell "rehash", for when you know or suspect
the target might change, such as when setting a new $PATH.