At 9:24 PM +0100 2002-04-24, FLA wrote:
>I wonder if anyone can help me.
>
>I installed MacPerl on my iMac yesterday (Classic environment, no OSX) so
>that I could learn to use Woda, a web-oriented database package, which I had
>tried (and failed) to get running remotely on the server where my website is
>hosted.
>
>I can't get any scripts to run in perl because I can't define the path. It
>installed itself on the hard disk in the application folder, inside a folder
>called MacPerlŸ. I tried defining this as the path, but the scripts weren't
>interested. So I changed a couple of folder names, to make the path
>/Macintoch HD/Applications/usr/bin/MacPerl - but that didn't work either.
>I've tried all the permutations I can think of - substituting ':' for '/',
>calling it perl or MacPerl - if anyone has any other ideas, I'd be really
>grateful.

By "the path" do you mean the shebang line path such as in a
UNIX-based Perl script, like #!/usr/bin/perl or some such? In MacPerl
that's not how a script "finds" the Perl interpreter.

Launch MacPerl, and use the menu commands "Run" or "Run Script...",
or save the script in some of the formats MacPerl offers to make
executables, etc.

Or, execute in BBEdit set up to work with MacPerl (very easy!).

Or, get MPW (Mac Programmer's Workshop) to simulate a command line.

To simulate http/CGI execution, set up local web sharing, following
the excellent instructions in David Steffen's article in Perlmonth
Issue 11, at <http://www.perlmonth.com/index.html/?issue=11> -- oops!
I just tested that link and it's not there now. So check the archives
of the MacPerl lists, especially the webcgi list.

HTH

1;
--

   - Bruce

__bruce_van_allen__santa_cruz_ca__

Reply via email to