When it comes to Adjusting @INC, I've always modified startup.pl to include something like

use lib qw( /path/to/metadot /path/to/my/code );

You said...

Ubuntu 9.10
Apache2 2.2.12
mod_perl2 2.0.4
It works fine on the production RH server, just not on my development machine.

You can certainly develop on Ubuntu and then run it on Redhat but, along the way, you will likely encounter subtle differences in the way the different distros package their software, what version of what module is available where and such. As a bonus, problems like that can be difficult to track down.

If you're doing more than a bit of casual programming, I'd recommend setting up a virtual server that is as similar to the production environment as you can get. If I were in your shoes, I suppose I'd use RHEL (or CentOS) in a VirtualBox and duplicate the installed software and configuration of the server.


In reply to Re: changing mod_perl's version of %INC by rowdog
in thread changing mod_perl's version of %INC by Japhering

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.