This is going to be quick...

I got my start with mod_perl several years ago after lots of fits and starts, and after awhile got proficient in using it for web-based applications under Apache 1.3.xx

Now I've had to begin thinking about migrating to Apache2. I realize there are quite a few things that aren't working in Apache2 that work in Apache, but I can work around those with some of the newer modules (there are very specific things in SSL that Apache2 broke which works under Apache, as well as a few other quirks).

Under Apache, I used to use Apache::Request to catch the param() being passed in the URI field (or CGI.pm in quick cases), by using $apr->param('foo');. I used a dispatch table to switch into the proper sub when the proper param was passed. sub 'dl' for param 'dl' and so on, and I catch false/non-existant params and handle those as well.

Now I need to find "The Best™" way to keep catching param() as passed to my script under Apache2 and mod_perl2.

With atcroft's help, I found the mod_perl2 user's guide, but I'm looking for alternatives or better solutions to catch param(). I am rebuilding a pretty complicated CMS I wrote from the ground up, and would like to get this right when I start, not after I go into production (as I did when migrating from CGI to Apache::Request in the original version of the portal system).

Any snippets/modules/theories I should consider here?


In reply to How do YOU catch param()? by hacker

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.