I never used Net::TCPWrappers, but something tells me that you should replace $sock->fileno with $s->fileno
In reply to Re: Using TCPwrappers by zwon in thread Using TCPwrappers by mungohill