Perl: the Markov chain saw | |
PerlMonks |
Re^2: Missing Module in CPANby Fletch (Bishop) |
on Mar 05, 2022 at 03:56 UTC ( [id://11141847]=note: print w/replies, xml ) | Need Help?? |
Was actually curious so went poking and I think it's a bug / mis-implemented feature that won't work as is now (presuming I'm reading the docs right and my empirical messing around was done correctly). According to the documentation it's so that you can (paraphrasing) define class methods which will override the defaults for things like requires_firewall (which looks like the only specific method at any rate). But since the Net::Config would be a child of the putative Net::LocalCfg class then its (Net::Config) local version would override the parent's (Net::LocalCfg) implementation. To do what it says on the tin you'd need to have your own subclass of Net::Config with the special behavior therein so that when you call the class method on that it'd do the right thing and find your custom overridden version. My test local module is loaded, but as you can see the "override" isn't called.
The cake is a lie.
In Section
Seekers of Perl Wisdom
|
|