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

If you're gonna be messing with @INC, maybe just create a subclass and redefine DOMAIN_PORT via @ISA or parent.

No, overloading only works on methods, which the subs in question are not.