mod_perl is pretty common, and I think any site using Perl CGI would prefer if possible to hook into mod_perl for the performance boost (by using Apache::Registry or something). If you're planning to do much web development with Perl, it's useful to learn mod_perl. Learning mod_perl also helps you understand how Apache itself works. So an argument for learning mod_perl (or anything) is that the extra knowledge will help you make better decisions than if you don't know it.

However, I think HTML::Mason doesn't really require much mod_perl knowledge. It would help you understand what's going on underneath, but you could learn HTML::Mason at a more conceptual level if you wanted. If the main reason you wouldn't learn HTML::Mason is because you're intimidated by mod_perl, I think you can eliminate that reason. The hardest part of HTML::Mason when I first learned it was the initial Apache configuration, but it's well documented and there's a mailing list to read archives or ask questions.

Typically with HTML::Mason, you put HTML at the top of a template page and some Perl at the bottom. The HTML will have special tags in it, similar to JSP or ASP. Then below it, you'll put some Perl code to initialize variables. But I think the powerful thing about HTML::Mason is its "object-orientedness". You can use "autohandlers" to automatically produce parts of the pages, and you can use "methods" that are object-oriented so you can override them and whatnot. I guess in the end it might be just what fits best with your style, so maybe HTML::Template or Template Toolkit makes more sense for you. But knowing mod_perl will still be useful anyway.


In reply to Re: How common is mod_perl? by kwoff
in thread How common is mod_perl? 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.