`$cmd` or it identical twin qx($cmd) both shell out and actually do an
sh -c. So if you are looking for something specifically in ksh you'll
have to run ksh from within the qx().

|b

On Thu, 2003-06-26 at 16:21, David Parker wrote:
> Hi. I have a perl script that calls various programs. I would like to be able to 
> verify that a given program is being called from the right place - what I would use 
> "whence" for in the korn shell.
> 
> I tried 
> 
>    $path = `whence $cmdname`;
> 
> but I don't get anything in $path. I'm undoubtedly missing something - I'm a 
> beginner!
> 
> Thanks in advance for any clues....
> 
> - DAP
> --------------------------------------------------------------------------
> David Parker   
> Rocket Software
> (617) 614-2128
> 
> 


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to