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

Drew Marshall drew.marshall at trunknetworks.com
Sat Mar 7 17:03:05 GMT 2009


Rick

On 7 Mar 2009, at 16:55, Rick Cooper wrote:

> Actually, now that I think about it (if I am correctly reading into  
> what
> this is supposed to do), I would think
>
>    while (${@body}[$#body] !~ /^\s*$/) {
>      print "Line is ****" . ${@body}[$#body] . "****\n";
>      pop @body;
>      #print STDERR ".";
>    }
>
> Would work just as well would it not?

This one gives

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

Drew


More information about the MailScanner mailing list