Perl vs PHP

It is slowly becoming the classic argument among Unix web developers. Which language is better, Perl or PHP? Having touched way more PHP code than Perl code, I am of course biased. However today I spoke with a die hard advocate of Perl today and he spent about 10 minutes trying to explain to me how fast Perl was, how it could connect to different databases, mod this, mod that, yada yada yada. After hanging up he sent me about 10 different examples of how PHP cannot do the things Perl can do. One of the ones he sent was....
Main Program use Databasehandler; my $statement = "Select * from brooklyn"; $ref = $obj->records($statement);# This returns a refer to an array of refs which PHP can not do correctly Walk through the entire table for $tmp(@$ref){ for $tmp2(@tmp){#this completely is not possible in PHP because of noice print $tmp2; } }
Am I missing something here? I just don't see it. What do you think?

posted @ Thursday, February 08, 2001 7:05 PM

Print

Comments on this entry:

No comments posted yet.

Your comment:






 
 
 
Please add 8 and 4 and type the answer here:
 

Live Comment Preview:

 
«September»
SunMonTueWedThuFriSat
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011