At 23:44 +0900 2/17/04, Iyanaga Nobumi wrote:
>As the subject line says, I would like to ask you if it is impossible to call "do 
>shell script" from MacPerl, using MacPerl::DoAppleScript($script).

I hate it when someone asks me the famous question, "why would you ever want to do 
that" but in this case. . .

Do shell script is never going to work in OS 9 or earlier. There is no shell unless 
you're using MacPerl as an MPW tool.

If you're running OS 10 you ought to be using UNIX perl in which case shell commands 
can be executed by simply enclosing them in backquotes. Jumping into a MacPerl:: 
module is for doing things that perl can't do by itself and in most cases that's 
left-overs from the classic OS.

$dirlist = `cd ~/; ls`;  ## untested

but I'm not so sure that perl will honor the ~ convention which belongs to your 
default shell or perhaps bash regardless of your default.

-- 
-->  There are 10 kinds of people:  those who understand binary, and those who don't 
<--

Reply via email to