Subject: The mailing list for listmasters using Sympa
List archive
[sympa-users] Re: Can't use string ("0") as an ARRAY ref while "strict refs"
- 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
-
[sympa-users] Can't use string ("0") as an ARRAY ref while "strict refs",
Edward Kovarski, 09/26/2007
-
[sympa-users] Re: Can't use string ("0") as an ARRAY ref while "strict refs",
Edward Kovarski, 09/27/2007
-
Message not available
-
Message not available
-
[sympa-users] Re: Re: Can't use string ("0") as an ARRAY ref while "strict refs",
Olivier Salaün, 09/27/2007
-
[sympa-users] Re: Re: Can't use string ("0") as an ARRAY ref while "strict refs",
Edward Kovarski, 09/27/2007
- [sympa-users] Re: Re: Re: Can't use string ("0") as an ARRAY ref while "strict refs", Olivier Salaün, 09/28/2007
- [sympa-users] Problem with "Send it back" and "Tag this Mail for Deletion" Buttons, Allen, Pat, 09/28/2007
-
[sympa-users] Re: Re: Can't use string ("0") as an ARRAY ref while "strict refs",
Edward Kovarski, 09/27/2007
-
[sympa-users] Re: Re: Can't use string ("0") as an ARRAY ref while "strict refs",
Olivier Salaün, 09/27/2007
-
Message not available
-
Message not available
-
[sympa-users] Re: Can't use string ("0") as an ARRAY ref while "strict refs",
Edward Kovarski, 09/27/2007
Archive powered by MHonArc 2.6.19+.