Hello Hans,
On the Mac, I think people use normally AppleScript (or AppleEvent) to pass
data between programs.
Here is a very simple example:
tell application "Style"
set thetext to the selection of front document
end tell
set PerlScript to "$str = $ARGV[0];
$pat = $ARGV[1];
$str =~ /($pat)/;
print \"$1\\n\";"
tell application "MacPerl"
set res to Do Script {PerlScript, thetext, "[a-z]+"} mode Batch
end tell
tell application "Style"
make new document
set selection of front document to res
end tell
Although this is a very silly example, I hope you will get the idea.
Best regards,
Nobumi Iyanaga
Tokyo,
Japan
>I'm just starting with MacPerl, and I'm having trouble calling another
>program. What I am trying to do is to pass information to a separate
>search engine and to process the output from that program. Since there is
>no comand line and backticks are not fully supported, how do I do this in
>MacPerl.
>
>Thanks for the help.
>
>Hans Holtan