06-17-2003, 12:03 PM
Example of why PHP has better documentation:
Perl documentation on the "glob" command:
http://www.perldoc.com/perl5.8.0/pod/func/glob.html
PHP documentation on the equivalent PHP function:
http://us3.php.net/glob
What makes Perl hard for most people is one liners. You can literraly write a complicated 50 line PHP/C++/BASIC/Whatever program in 1 or 2 lines in Perl. (what with $_, etc.)
In Perl, you also have to send the content type, and it's not really built for web. PHP has a strip_tags function, setcookie function, the list goes on. It's made for the internet and HTML.... Perl was made for reports.
Of course, Perl is in many ways a stronger language. I'm just saying that coming from the right perspective (most agree that BASIC is the wrong one ) PHP is easier.
-[Unknown]
Perl documentation on the "glob" command:
http://www.perldoc.com/perl5.8.0/pod/func/glob.html
PHP documentation on the equivalent PHP function:
http://us3.php.net/glob
What makes Perl hard for most people is one liners. You can literraly write a complicated 50 line PHP/C++/BASIC/Whatever program in 1 or 2 lines in Perl. (what with $_, etc.)
In Perl, you also have to send the content type, and it's not really built for web. PHP has a strip_tags function, setcookie function, the list goes on. It's made for the internet and HTML.... Perl was made for reports.
Of course, Perl is in many ways a stronger language. I'm just saying that coming from the right perspective (most agree that BASIC is the wrong one ) PHP is easier.
-[Unknown]