[英]LWP::UserAgent, mod_perl causing large Apache error logs
Each time LWP::UserAgent or LWP::Simple is used with mod_perl (PerlRun), Ubuntu 10.04.4 and Apache 2.2.14 I get about 50 or so error messages in the Apache error log: 每次将LWP :: UserAgent或LWP :: Simple与mod_perl(PerlRun),Ubuntu 10.04.4和Apache 2.2.14一起使用时,我在Apache错误日志中收到大约50条左右的错误消息:
Constant subroutine ModPerl::ROOT::ModPerl::PerlRun::home_user_public_html_index_2ecgi::RC_NOT_IMPLEMENTED redefined at /usr/lib/perl5/ModPerl/Util.pm line 69. 在/usr/lib/perl5/ModPerl/Util.pm第69行重新定义了常数子例程ModPerl :: ROOT :: ModPerl :: PerlRun :: home_user_public_html_index_2ecgi :: RC_NOT_IMPLEMENTED。
I have attempted defining the functions I will be using as: 我试图定义将用作的功能:
use LWP::UserAgent qw(agent request); 使用LWP :: UserAgent qw(代理请求);
However I am still getting these error messages. 但是,我仍然收到这些错误消息。 They are filling up the Apache error log very fast. 他们正在快速填充Apache错误日志。
I think no warnings 'redefine'; 我认为没有警告“重新定义”; will work. 将工作。
use strict;
use warnings;
no warnings 'redefine';
Is how I usually do it. 我通常是这样做的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.