in reply to Re^2: Permissions for a separately installed perl
in thread Permissions for a separately installed perl

Hm... another try:

$ strace -f -efile /bin/bash -c 'perl -v' 2>&1 | grep perl

Replies are listed 'Best First'.
Re^4: Permissions for a separately installed perl
by wfsp (Abbot) on Feb 28, 2010 at 13:46 UTC
    $strace -f -efile /bin/bash -c 'perl -v' 2>&1 | grep perl execve("/bin/bash", ["/bin/bash", "-c", "perl -v"], [/* 17 vars */]) = + 0 stat64("/usr/local/sbin/perl", 0xbfde45f8 = -1 ENOENT (No such file or + directory) stat64("/usr/local/bin/perl", {st_mode=S_IFREG|0755, st_size=1169915, +...}) = 0 stat64("/usr/local/bin/perl", {st_mode-S_IFREG|0755, st_size=1169915, +...}) = 0 execve("/usr/local/bin/perl", ["perl", "-v"], [/* 16 vars */]) = 0 This is perl, v5.10.1 (*) built for i686-linux... etc.

      shmem's reply below is most likely correct.  With the above command you're running a new shell (with no cached name—>binary bindings), so everything works as expected...