Interesting Error - Can't use string ("1909") as an ARRAY ref while "strict refs" in use

Drew Marshall drew.marshall at trunknetworks.com
Sun Mar 8 09:52:17 GMT 2009


On 7 Mar 2009, at 20:49, Julian Field wrote:

> Okay, so the new chunk of code just there says this:
>
>  if ($configwords[1] =~ /tr[ua]/i) {
>    #print STDERR "Trackback:\n";
>    while(${@{$body}}[$#body] !~ /^\s*$/) {
>      #print "Line is ****" . ${@{$body}}[scalar(@{$body})-1] . "**** 
> \n";
>      pop @{$body};
>      #print STDERR ".";
>    }
>
>    #print STDERR "\n";
>    $b->Done();
>    return;
>  }
>
> See if that helps your problem.

Ok new code in and the error reads:

Global symbol "@body" requires explicit package name at /usr/share/ 
MailScanner//MailScanner/PFDiskStore.pm line 509.
Compilation failed in require at /usr/sbin/MailScanner line 354.

Drew


More information about the MailScanner mailing list