hello,
i'm creating a
CGI::Application based webapp under
mod_perl 2 and i switched to
Apache2::Reload so i don't have to restart Apache everytime i make a change to one of the webapp's modules.
at the start of the modules i use the
use warnings FATAL => 'all'; pragma, but that dies with
Subroutine redefined... unless i specify
no warnings 'redefine';. Everything works fine if i only
use warnings; (no warnings in the Apache's log).
so i have the solution to my problem, but i would like to understand why this happens as i couldn't find much information elsewhere. thank you for your time.
UPDATE: i didn't get any warnings when
use warnings; because i was using
PerlSetVar ReloadConstantRedefineWarnings Off in my Apache configuration... i don't understand what's with the warnings about redefined things and why would them be useful in a non-persistent environment...
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.