mod_perl should not require changes
This is almost completely not true. mod_perl is very different from running a command line perl script. As was mentioned in other responses your working directory may not be what you think it is, and depending on how apache is set up, it may even prevent you from doing a chdir().

Not to mention that you are now running in a persistent environment where the difference between compile time and run time are even more significant. This will also magnify other problems in your code (globals, unintentional closures, etc) that would not show up otherwise.

All of these issues are known and well documented and acceptable if you want the performance benefits of mod_perl. But to say that it shouldn't require any code changes is very misleading...

And for the OP, you can read here for more info on begining your mod_perl life.

In reply to Re^2: ModPerl Compatibility by mpeters
in thread ModPerl Compatibility by Anonymous Monk

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.