I’m new to perl and am working on a web application. I’ve just begun using modules, and had a very frustrating time trying to debug some issues. It seems the module is being cached by the webserver so updates aren’t available to the calling script until the webserver is stopped and restarted. That took awhile to figure out. A couple of questions:
1) Is there an easier way to clear out the webserver memory than stopping/restarting?
2) Is this the standard development cycle (make code change, stop webserver, restart webserver, test code change, repeat)?
3) Any suggestions for improving the way I’m doing this?
Thanks for your input.
Edit:
System info:
xampp v1.6.0a
Perl version: v5.8.8 built for MSWin32-x86-Multi-Thread (ActivePerl)
Web server: Apache
Update:
I've added the following lines to my httpd.conf:
PerlInitHandler Apache2::Reload
PerlSetVar ReloadModules "Planning::*"
Now the module seems to reload, but only when I change the calling script in addition to the module. I.e., I can change the module and rerun the calling script and nothing changes, but if I change the calling script and the module, then the module will get reloaded. Is this the intended functionality or am I doing something wrong?
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.