With mod_perl, you have more control over the apache request, and are able to do processing at almost any stage.

You also have the benefit of not having to fork and start up a perl interpreter, as it is already loaded into memory. This can give you a significant speed increase, at the cost of a fatter apache process.

If you are looking at mod_perl, these links may help.

As for speed, most benchmarks I've seen, mod_php was faster for small things (hello world type stuff - less overhead).
Of course, generally dynamic applications are constrained by databases and the like, rather than perl/php speed.

Update: To clarify above notes, with php (at least up to php4, I'm not all that familiar with 5), you have much more control over apache with mod_perl, than mod_php.
Furthermore, speed isn't really an issue. If mod_perl is too slow, odds are php is too slow as well, and you might start considering a standard C apache module.

In reply to Re: Mod Perl info by cowboy
in thread Mod Perl info by hok_si_la

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.