At 4:24 pm -0500 15/1/04, Ingo Weiss wrote:


as a long time MacPerl user who just made the transition to MacOS X I am
a little confused: What is the difference between using MacPerl on MacOS
X and using Perl on MacOS X? I guess I am looking for help with using
Perl on MacOS X - am I in the right place at all?

You're in the right place.


You can still use MacPerl running in Classic but that limits you to v. 5.6.0 and on MacOSX you can run the latest versions (Panther installs 5.8.1 but you can install 5.8.2).

The difference is that you work in a different way in OSX. Suppose you have a file saved at /tmp/junk.pl with the content

print "Hello\n"

Then you can a) compose, check syntax and run it in BBEdit; b) do the same in some other Perl editor; c) work in the Terminal as follows:

% cd /tmp
% perl junk.pl
hello
%

or d) send an Apple event from Script Editor etc. and get the result in the SE results pane.


do shell script "perl /tmp/junk.pl" -- => "Hello"


There are dozens of different options and combinations of ways to do things.


At the moment BBEdit is more or less Hobson's choice as an editor and it's not everyone's cup of tea, but other things are in the pipeline. You might be interested to look at <http://www.maths.mq.edu.au/~steffen/Alpha/AlphaX/> as an alternative. I haven't tried it yet, so this is not a recommendation, but Alpha was once a very strong programmers' editor for MacOS.

Just ask away here. It's not very long ago that I was as perplexed as you. Luckily I'd done a bit of perling on Windows as well. so that eased the transition from the cosy world of MacPerl.

JD






Reply via email to