There is one major advantage in mod_perl you don't have to forget: speed. CGI itself has to be parsed each time it is called, the interpreter has to be loaded... Yes, I know that there are some fastcgi things that help there, but mod_perl is really fast.

I don't understand why it should be unfair to other OSes or platforms? Apache runs on every OS/platform one wants it to run on - at least on those which can be considered as useful OSes/platforms for running a webserver at all. So I don't get it what's unfair there. That's just a bogus reason for people who really mean IIS and not OS/platform.

Personally I even go further: I use HTML::Mason which is the greatest thing I've ever seen for website programming. I don't really know how argument handling is handled in pure mod_perl, but HTML::Mason makes it really save - one of the things cgi scripts usually are accused for. It also lets you template your site with splitting design completely and cache different components you are using for differnet times. Also session management is quite easy - just give it a try, look at http://www.masonhq.com/. Of course you can use CGI::Portable within HTML::Mason for your things, it's perl, after all.
--
use signature; signature(" So long\nAlfie");


In reply to Re: How do you feel about mod_perl? by alfie
in thread How do you feel about mod_perl? by princepawn

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.