Skip to Content.
Sympa Menu

en - [sympa-users] Re: Can't use string ("0") as an ARRAY ref while "strict refs"

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: Edward Kovarski <address@concealed>
  • To: address@concealed
  • Subject: [sympa-users] Re: Can't use string ("0") as an ARRAY ref while "strict refs"
  • Date: Thu, 27 Sep 2007 00:24:15 -0400


My perl skills are rusty but I've managed to make it work by making the following changes to tools.pl,

Line 145+

#return 0 if ($#{$msg->body} >= 5); ## More than 5 lines in the text.
return 0 if ($msg->body >= 5); ## More than 5 lines in the text.

#foreach $i ($#{$msg->body}) {
foreach $i ($msg->body) {
if ($Conf{'misaddressed_commands_regexp'} && ($i =~ /^$Conf {'misaddressed_commands_regexp'}\b/im)) {
return 1;
}

The environment specs are,

CentOS v4.5 and Perl 5.8.5,

On 26-Sep-07, at 1:03 PM, Edward Kovarski wrote:

Has anybody else noticed this error in sympa.pl?

This is on Centos 4.5 with Sympa 5.3.3. It seems to die on checkcommand in tools.pl when it returns 0 to DoMessage.

main::DoMessage() Processing message for testing with priority 5, <address@concealed>
Can't use string ("0") as an ARRAY ref while "strict refs" in use at /usr/local/sympa/bin/tools.pl line 144.

I've checked the dev-branch and the code appears to be the same so I am curious on whether anyone else has encountered this issue and what they did to resolve it.

Ed




Archive powered by MHonArc 2.6.19+.

Top of Page