I've been getting these messages in my Apache error_log for several weeks. The perl script is perfectly happy, no warnings with strict and when checking with
perl -wc and the web service seems to be running well. The server itself has been up for more than 600 days, it is running Fedora Core 7 (I'm afraid of upgrading when it is a production server and the client is happy), Apache 2.2.8, and Mod_perl recently upgraded from 2.0.3 to 2.0.4 without change in status other than response time is definitely more brisk with 2.0.4.
[17:43:26] (eval 1105): Bareword found where operator expected at (eva
+l 1105) line 1, near "${ModPerl::ROOT::ModPerl::Registry::home_admin_
+www_mail_2efcgi}::app"
[17:43:26] (eval 1105): (Missing operator before ::app?)
The best I can come up with is that this has something to do with the launching mechanism in ModPerl::Registry which is running an unmodified 'use CGI' script for me (called mail.fcgi).
Here's my Apache perl.conf
LoadModule perl_module modules/mod_perl.so
#PerlSwitches -w -- when turned on I get Use of uninitialized... war
+nings in the log, but the error happens when it is off
#PerlSwitches -T -- universal Taint checking is slow...
<Files *.fcgi>
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
PerlOptions +ParseHeaders
Options +ExecCGI
</Files>
Many other ModPerl::Registry scripts run as part of the service, but only this one reports the bareword error. Yet it itself runs very well (more than 2000 invocations per day).
I'm not sure how to attack the problem, or whether any of my Perlmonk Brothers or Sisters have in fact seen it themselves? Any and all comments are welcome.
Thanks in advance,
SSF
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.