Re: PERL vs. PHP

From: Date: Fri, 20 Apr 2001 23:10:06 +0000
Subject: Re: PERL vs. PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-49618@lists.php.net to get a copy of this message
"Basically", yes. And I do mean "basically". The languages have the same "basic" sort of syntax and you can make a perl script look almost exactly like a PHP script and vice-versa. However that means _only_ that it is easier to learn one after learning the other. The paradox is that Perl gurus write awful PHP code. PHP gurus write awful Perl code. If you are going to write something in a certain language, you _must_ write it as a programmer of that language. PHP and Perl look a lot alike, but if you try and write them the same you will never be good at either of them. Wizard level code of either PHP or Perl really isn't even the least bit similar. Good perl code stuffs a whole ton of activity into a very small space. You can check if a string is empty, run regex on it to remove certain data, then split it and stick it into a tailor-made associative array on just a few lines. Try and write PHP code like that and you might as well eat your keyboard. PHP isn't "perl, just a little better". (people trying to write PHP like it was Java perhaps worse, though. If they use a class to check a variable for truth, they're probably a Java programmer ;) Just remember: Square Peg, Square Hole. -- Plutarck Should be working on something... ...but forgot what it was. ""Jason Caldwell"" <jason@thinkingman.org> wrote in message news:9bq8h0$n78$1@toye.p.sourceforge.net... > If I know PHP will I *basically* know PERL? Looking at some PERL code... it > looks nearly identical. > > Thanks. > Jason > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#49618) next »