in reply to Re^2: How to redefine a modules private function?
in thread How to redefine a modules private function?

Calls made using & are never inlined. ... I can't understand to what cases it applies to though.

In this case, this would require one to edit AnyEvent::DNS and change lines such as my $sa = AnyEvent::Socket::pack_sockaddr (DOMAIN_PORT, $server); to my $sa = AnyEvent::Socket::pack_sockaddr (&DOMAIN_PORT(), $server);.