It's a question I wrestled with recently.

I've used Perl for a longer time than PHP and I like it more. I don't enjoy coding in PHP and neither do I enjoy reading others' PHP code. It's easy to mix PHP code with html and as a resul a lot of PHP code out there is a pain to read (OsCommerce comes to mind).

With Perl, I'm more disciplined and use a templating system to separate Perl code from html. You can do that too with PHP with the aid of a module but because it's easy to include html in PHP code, people tend to fall into this habit (at least I do).

But (I hope I'm wrong here) most stuff I've come across on the Internet seems to suggest that PHP is faster as a web scripting language than Perl - for reasons cited in the comments above. So it's a hard decision to make. I would choose Perl because it's a much more powerful language yet PHP comes across as the natural choice for the web in terms of speed.

I'm curious to hear from anyone who's used Perl on a moderate to heavy traffic interactive site (with MySQL or similar) without using mod_perl - just Perl CGI (vanilla Perl, or whatever it's called). Is the site able to support say 100 users simultaneously?


In reply to Re: PHP over perl by Anonymous Monk
in thread PHP over perl by targetsmart

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.