Hello,

Recently I began actively experimenting with mod_perl and one thing that I am struggling with a bit is the development process itself.

For example I'm cruising along making use of the Apache Request Object, using the param() method in multiple scripts which are then calling a local module. And I as I am developing that local module or one of the scripts and makinge a small change to the code, and then run it - oops, not quite how I want it, change this here, change that there, run it, whoops derferenced from that nested hash incorrectly, or whatever (details aren't as important - the general jist being run, small change, run, change, etc.).

The problem that I am running into given my understanding is that mod_perl has placed my scripts/modules in memory; and I don't have a firm grasp on how my changes to the scripts/local modules are being used (or even if they are due to the 'in-memory' script/module still being used, not what I just changed a few seconds before test-running it).

Any pointers on how I might go about addressing this, or if I am off my rocker (wouldn't be the first time or anywhere near the last). I would prefer to not have to stop and re-start the Apache server each time I am making a change (if that is one of the potential solutions). Is there some type of "force clear this script or module out of memory" type of step(s) you can take during the development process?

Thanks for any inputs,
nandeya

In reply to mod_perl devlopment process by nandeya

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.