Who put the "P" in LAMP?
In the LAMP stack, I've heard that the "P" stands for both PHP and PERL. What's the difference between them, and when is either one used?

    Requires Free Membership to View

    When you register, my team of editors will also send you resources covering Linux administration and management; integration and interoperability between Linux, Windows and Unix; securing Linux and mixed-platform environments; and migrating to Linux.

    Cathleen A. Gagne, Senior Editorial Director

    By submitting your registration information to SearchEnterpriseLinux.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchEnterpriseLinux.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

PHP is a simpler language when it comes to delivering Web pages, and it's more closely integrated with HTML and Web servers than Perl is. Perl is probably the more powerful language, and more general purpose, but its roots are in batch-mode scripts, not in database-driven Websites. In the end though, use the one that you have the most expertise with, since they're both 3GL programming languages with many similar features. A proper understanding of the risks and benefits of mod_perl is essential if you choose Perl.

This was first published in April 2005