Hi,

When you write a web page/application why do you choose mod_perl or CGI.pm? More specifically, why would you choose one over the other?

I've found out that for internal websites where the version of perl available to mod_perl is inconsistant, that I'm choosing CGI.pm solely because I can choose the exact perl version (threaded/nonthreaded, 5.005/5.6/5.8, etc) that the script was written for.

Update

From the responses so far, I don't think anyone is understanding me. If I have a perl script that requires 5.8, but mod_perl is set up for 5.005 (I don't have web admin rights and I don't want them) and it is not possible to change the configuration for mod_perl (it might break other scripts), then I really don't have the option to use mod_perl. This is just one example where mod_perl is not possible. (Keep in mind that this is an arbitrary server, one out of hundreds or even thousands, and that what mod_perl is set up for varies greatly.)

so my question is... Are there any other reasons that you might choose one exclusively over the other?

thanks

Jason L. Froebe

No one has seen what you have seen, and until that happens, we're all going to think that you're nuts. - Jack O'Neil, Stargate SG-1


In reply to mod_perl or CGI.pm? by jfroebe

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.