Well both are server side languages, I have heard of Perl being called the "Duck tape of the internet" and it is a very flexable language. But with PHP now in the picture and its popularity i think it might one day replace Perl. I see more people using PHP instead of Perl, but Perl still has its place. So its a matter of which one you like best and what ever suits your needs the best. Myself Im trying to replace all of my Perl scripts with PHP.
Perl gives you more freedom and flexibility at the cost of being hard to learn and use (And I mean pro level), and php gives you simplicity. it's your choice. Mine is perl.
afaik there is much php software that is considered "bad","insecure" etc... for example phpbb2 .... or ecommerce sowtware. just try to google for 'phpbb exploit' and you'll see. even the superior php soft like mediawiki recently had some troubles.
on the other hand there is perl. perl runs www.livejournal.com, perl powers www.combats.ru. perl is used by countless billing systems, network administration, update servers, SOAP etc..
I know someone would object this is not php this is programmer's fault. but there is no strictness in php, nor there is -T flag (to make interpreter scream about tainted data). think of it..
Yes, you can do pretty good OOP with perl. Check out these modules! http://search.cpan.org/search?query=...3A%3A&mode=all There's probably all you want for OOP. Of course, you can write your own, but reinventing a wheel is a crime with death sentence :P
afaik there is much php software that is considered "bad","insecure" etc... for example phpbb2 .... [...] on the other hand there is perl. perl runs www.livejournal.com, perl powers www.combats.ru. perl is used by countless billing systems, network administration, update servers, SOAP etc..
I believe the reason for these differences in software quality is twofold: First, it is partly the language's fault. PHP tends to promote bad rather than good programming practices. Even a PHP whiz may still fall into its traps. And second, because PHP is regarded as simpler and easier to learn, it tends to attract the amateur developers. Such developers will, consequently, write amateurish code.
Bookmarks