[Mimedefang] use Net::LDAP and file descriptor error.
Dave O'Neill
dmo at roaringpenguin.com
Wed Nov 1 17:19:37 EST 2006
On Wed, Nov 01, 2006 at 01:04:11PM -0900, Matthew Schumacher wrote:
> Since I'm putting it in filter_initialize and my filters seem to work
> fine I'm thinking that I can safely ignore it, but I want to double
> check with the list.
>
> Anyone have thoughts on why this wouldn't work?
It's safe to ignore. That warning's getting removed in a future version
of MIMEDefang anyway.
The reason you're getting it is because Net::LDAP::Constant is a
shocking abuse of Perl. That module opens its own source, via the DATA
handle, so that it can parse its own POD documentation to retrieve the
constant values, error names, and error text.
It's a neat hack, because it removes duplication of the constant values
and error texts, but unless you close(DATA) after using it, it will
leave a dangling open filehandle.
Cheers,
Dave
--
Dave O'Neill <dmo at roaringpenguin.com> Roaring Penguin Software Inc.
+1 (613) 231-6599 http://www.roaringpenguin.com/
For CanIt technical support, please mail: support at roaringpenguin.com
More information about the MIMEDefang
mailing list