I also don't wish to start a flame war, but I write CGI applications
predominantly with perl..
and I'd have to say that perl and php don't really differ that much in
server load or speed.
and I have seen some  benchmarks with php, ASP, perl, mod_perl, and JAVA...
and in most cases,
mod_perl won out on speed, php and perl were not that different, depending
on what was being done.
ASP I can't remember cos I wasn't particularly interested..
JAVA was in some cases up close to mod_perl as was c++ which makes sense
since both are compiled languages.
c++ was alittle ahead of JAVA because it didn't run in a java enviroment and
as such needed to be compiled for
the platform it was on for testing.

most of the problems with perl is that it lets you get away with alot, and
efficient coding.. (particularly with strictures) can make a huge
difference.. alot of people just don't pre-declair variables, which means by
default that they become global and take up memory much longer then they are
actually needed for.. other issues are caused by unnecessary use of regex,
which slows things down a fair bit, if you don't need it to achieve
something, find an alternative...

efficient coding on perl can be very fast.. particularly with mod_perl.

Other benefits of perl.

1. CPAN, (already discussed.)
2. Installed on all unix servers and the vast majority of NT/2000 servers.
(php can be as well, but doesn't have the same numbers.)
3. Mod_perl already discussed, enterprise speed applications that compete
with languages like C++ and JAVA for speed.
4  Easier to organise huge projects then PHP.. take a look at the code for
the older versions of PHPnuke for an example.
(niether is as good as JAVA for this though.)
5  Perscript.
6  Age, perl has been around for ages, is very stable and has access to more
system stuff then php, see CPAN above :-).

Its a matter of using the tool that fits best for the job.. I have no real
preference. but I have written alot of online ecommerce stuff and the simple
truth of the matter is that its faster on perl.. (I mean development not
running speed in this case.) particularly since most of my stuff runs on a
wide variety of ISP servers, Solaris, old and new distro's of linux, and all
variations of NT/2000 servers.

If the situation changes in the future I'll reassess.. I want to achieve
stuff with the least amount of effort on my part necessary.

rgds

Frank

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Alexander Skwar
Sent: Thursday, 21 February 2002 8:02 PM
To: [EMAIL PROTECTED]
Subject: Re: [expert] databases for linux


�Rob� sagte am 2002-02-21 um 09:45:56 +0000 :
> Why do you despise Perl then ?

I simply do not like it.  For web applications, I find PHP *way* easier
(and with most setups: faster) to use.  Most of the time, there isn't
mod_perl available, so perl scripts cause a *HUGE* load on the server.

> Course I might be missing something re PHP, love to learn more if I am.

Well, in PHP you need to have the main modules compiled into PHP (or at
least as a module).  And then there's PEAR, which will be a CPAN alike.

Alexander Skwar
--
How to quote:   http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:       http://www.iso-top.de      |     Jabber: [EMAIL PROTECTED]
   iso-top.de - Die g�nstige Art an Linux Distributionen zu kommen
                       Uptime: 4 hours 42 minutes



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to