> I was afraid that this which-like command might be known by various
   > names on various systems, and the output might vary.

I tried this, and I think it should work on any bourne shell:

echo $PATH |
 tr : \\n |
 while read dir;
 do if [ -x $dir/perl ];
 then echo $dir/perl; break;
 fi; done

Reply via email to