At 3:18 PM -0800 3/23/01, Dr. Thomas Knudsen wrote:
>I am a novice programmer (a psychologist by trade), and am wondering if
>there is anyway to integrate my Perl code into RealBasic?
Yes. You can do this several ways:
1) Create a RealBasic frontend that is scriptable, and use
AppleScript from perl to talk to it.
2) Create a perl script that is scriptable, and use AppleScript from
RealBasic to talk to it.
3) Use AppleScript to send perl scripts from RealBasic to MacPerl.
("inline" perl, as it were).
The third option is probably the simplest way, particularly from a
novice programmer's point of view.
What you'll do is build your perl programs, and test them. Then copy
them verbatim into a string in RealBasic. Then use AppleScript to
tell MacPerl to DoScript with your script.
-Jeff Lowrey