On Friday, June 22, 2001, at 02:37 PM, [EMAIL PROTECTED] wrote:
> Has anyone ever scripted a website with lots of simultaneous
> connections in Perl, on MacOSX? How did Perl fare in comparison with
> other scripting languages? Was the fact that Perl is not
> multi-threaded, a handicap?
I haven't tried it yet on OSX, but I'd assume it's similar to other
versions of Unix or Linux. The issue isn't whether Perl is
multi-threaded,
but whether the web server can easily handle multiple connections. I've
always used Apache for this, and especially under mod_perl (which embeds
a Perl interpreter in the Apache server for really fast performance)
you get really good performance (YMMV, of course).
Also, mod_perl enables you to modify every stage of the web server
process and thus lets you do things you couldn't possibly do under CGI.
There is a lot of information on mod_perl, see http://perl.apache.org -
follow the links to the mod_perl guide. O'Reilly has a very good book
called "Writing Apache Modules with Perl and C" on mod_perl. Also have
a look at http://www.take23.org, a news site for mod_perl-related things.
Some people seem to like PHP, which is in essence a simple templating
system that makes it easy for you to do database connections and the
like,
but I've heard it's quite limited actually; in any case, you can do all
that and much better with Perl and mod_perl.
If you need to separate business logic and presentation, look at
the Template Toolkit (http://www.template-toolkit.org), which also
happens to work very well with mod_perl.
Another system based on mod_perl that might be of interest to you
is AxKit (http://www.axkit.org), which is an XML application server.
Hope this will get you started in the right direction.
Marcel
--
$ perl -we time
Useless use of time in void context at -e line 1.