Can just use the fully qualified name to overwrite the sub.
use 5.10.0; use AnyEvent::DNS; { no warnings "redefine"; sub AnyEvent::DNS::DOMAIN_PORT { 8053 }; } say AnyEvent::DNS::DOMAIN_PORT();
Probably a couple other ways to do it.
In reply to Re: How to redefine a modules private function?
by Your Mother
in thread How to redefine a modules private function?
by sectokia
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |