You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Michael Todd Glazier <mi...@Galli-Glazier.com> on 2000/06/03 05:51:51 UTC
Weird log file entry related to use of constant
Based on the examples in "Writing Apache Modules with Perl and C" I'm
trying out the use of constants in a CGI program for
Apache::Registry. At the moment the program is only running under
Apache::PerlRun
The problem is its filling up my log file with non-fatal, but space
consuming message.
In my program:
use constant ADMIN_EMAIL => q{<a
href='mailto:host@blackjacklist.com'>mailto:host@blackjacklist.com</a>
};
In error_log:
[Fri Jun 2 23:39:33 2000] reg.cgi: Constant subroutine ADMIN_EMAIL
redefined at /usr/lib/perl5/5.00503/constant.pm line 175.
Is this just bad programming on my part and/or is it something I can
change? I could just switch to use vars I spose... :)
Thanks!
- mt