> This has probably been discussed to death, but I'm new to this newsgroup.
> I've been using Perl and CGI for that past few years on our web server
>to do Oracle front ends, among other web-based tools.
> I've never used PHP. How does it stack up to Perl in regards to:
> Ease of use
I would say for development of web-apps its simpler - but mainly because
the error handling is a lot more intuitive - not lots of 500 errors.
But with all languages its easy to write bad code, difficult to write good
code, unless you teach yourself well.
I think faster (no nead to load Perl)- unless you use mod_perl and can
benefit from the caching.
Built in objects - so you don't have Perl's function overheads if you use
accessors on objects.
Fast PHP is often more readable than fast Perl.... but then it depends if
you are the sort of person who is counting clock cycles.
I currently work with Perl at work on a system - and keep getting ticked
off for unreadable code - but clock cycles are important as we are
currently stretching our web/mysql cluster
[ 8 closely clusted HP/Compaq ES45 with 8-16G RAM each and 7T of Fibre
channel SAN - we managed to toast the server on the weekend as we had
in excess of 3,000 concurrent database threads open across the three
machines serving the MySQL instances ]
Very simple to use database modules
> Database access
Built in - look for a DBI replacement module (Pear's is halfway there) and
you will be well away.
> User support (a la Perl's CPAN)
There is Pear, some peole swear by it - others at it! But in certain cases
this is also true of CPAN. There is a lot of PHP code out there - but a lot
of the good applications don't necessarily use good coding practice/good
code, and so it is difficult to borrow/tweak