English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

pls tell me why.

2006-11-28 02:32:52 · 3 answers · asked by Anonymous in Computers & Internet Programming & Design

3 answers

perl is faster and has more functionality than php

php is great for script kiddies, but perl is the poppa of all scripting.

perl can be run with or without a webserver, and can be embedded in the server for extremely quick response time.

perl has tens of thousands of modules for just about anything... php has thousands. the simple method for connecting to mysql database in php is full of holes (security), while the perl method is almost fool proof.

2006-11-28 04:15:44 · answer #1 · answered by jake cigar™ is retired 7 · 0 0

On standard shared web hosting, PHP is normally installed as an Apache module, so it runs faster than Perl which still uses the old CGI process (mod_perl is generally not available on shared hosting).

Considering that PHP is generally a simpler language to use than Perl (though they both have syntactical roots to C), PHP wins in this sort of environment.

Perl is great if you have lots of text-processing to perform, but mostly PHP's preg_match is enough for web-related text processing.

PHP has a nicer/more intuitive way of building classes and developing in an object oriented style, so if you are writing a big application PHP's syntax and structure wins over Perl.

Perl's trump cards are the CPAN library - if you have access the install your own CPAN modules, then Perl is a lot more powerful than PHP. If the functionality is in CPAN, Perl is a better bet. Albeit, Perl is far better when comparing mod_perl with mode_php.

2006-11-28 10:39:50 · answer #2 · answered by Isofarro 3 · 0 1

In find that Php is more intuitive...but maybe Perl is more powerfull

2006-11-28 10:42:27 · answer #3 · answered by Jo 3 · 0 0

fedest.com, questions and answers