From: Stephen Satchell Subject: Re: Perl Or PhP? Date: Wed, 11 Dec 2002 21:17:14 -0800 Sender: linux-admin-owner@vger.kernel.org Message-ID: <5.2.0.9.0.20021211210727.02c0d5e0@fluent2.pyramid.net> References: Mime-Version: 1.0 Return-path: In-Reply-To: List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" Content-Transfer-Encoding: 7bit To: vick Julius , linux-admin@vger.kernel.org At 04:37 AM 12/12/02 +0000, vick Julius wrote: >I heard a lot about PhP but I did not have the opportunity to play with it. >1) Is it better than Perl? A religious question if I ever heard one. I believe both packages have their uses, and so you need to evaluate how each tool meets the problem you need to solve. My personal tendency is to prototype in PHP to get the user interface reasonably set, but use Perl, CGI.pm, and Pq.pm for the bet-the-company assignments. Many of the things I do involve Postgresql, and I find the Perl method, as opposed to the PHP method, allows for a smaller RAM footprint during page building. The integration of static and active page content is more intituitive in PHP than in Perl. This is especially true for Web pages which have only a small amount of dynamic content: you can use a standard HTML tool to build the static stuff to your liking, then add just the PHP you need for the active side. >2) Are there tasks that you can do with PhP that cannot be done with perl? I haven't found any. On the other hand, I've found things that Perl can do that PHP can't, but the significance is minor. The one thing I do use a lot in Perl that is just damn difficult in PHP is C "helper" code, particular output from Lex/Yacc. >3)Can someone, who knows perl, stick with perl without learning Php? If you want to, I would guess. PHP isn't that hard, but it is a little different. Again, it depends on how many tools you want in your toolbox to solve problems. Stephen Satchell -- The human mind treats a new idea the way the body treats a strange protein: it rejects it. -- P. Medawar This posting is for entertainment purposes only; it is not a legal opinion.