[Mimedefang] Re: MIMEDefang 2.42 wantarray correction patch

David F. Skoll dfs at roaringpenguin.com
Thu Apr 8 16:08:06 EDT 2004


Hi, Michael.

> I just noticed that mimedefang.pl contains the following...
> return (wantarray ? (999, 'swerr', 'tempfail') : 1);

> I'm assuming if *_contains_virus_* is called in scalar form it should
> return the same $code as if called in array form.

Actually, the *contains_virus* functions should never be called in
scalar context -- the documentation states they must be called in
list context.

The wantarray() check is historical and will probably go away, or else
call die() if the function is called in scalar context in a future version.

Regards,

David.



More information about the MIMEDefang mailing list