I've been active with PHP and Perl for a couple years, and here's my take on it:

Database Interaction:
PHP Comes standard, but lacks a standardized interface (outside of PEAR)
Perl You need to go get it, but DBI provides a standardized api, making it very easy to switch backend databases with minimal code change.

Web Programming:
PHP Php is really fast and benefits from being designed as a web programming language. Much easier to throw together quick pages. Also, the creation of super-globals for server and form/cookie data is very nice for web programming as well.
Perl Apache::ASP to be almost as clean as php, as can embperl.

Power and Flexibility:
PHP clunky interface to system calls, no interface to the apache api. My php and zend extensions had to be patched differently to compile/run under every minor version of php since 4.0.2
Perl You can write full Apache modules in pure perl. Perl modules written in C/xs seem much more stable (most of mine required no changes throughout the perl 5 lifespan).

Overall, php is quick, easy and not a bad language choice. Perl is almost as quick for straight web-programming, but is a more mature programming language that gives you greater flexibility in the long run. At least that's my $0.02.

In reply to Re: Perl vs. PHP by g_schloss
in thread Perl vs. PHP by jerrygarciuh

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.