in reply to Missing Module in CPAN

Net::LocalCfg seems to be a an optional dependency, so Net::Config should work without it. It doesn't exist in CPAN, and I doubt it has ever existed - at least, there are no traces of it in the Wayback Machine or Google Search.

Maybe it's a class the user is supposed to create? I don't see why creating the parent class would be beneficial, but maybe someone else knows?

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Replies are listed 'Best First'.
Re^2: Missing Module in CPAN
by Fletch (Bishop) on Mar 05, 2022 at 03:56 UTC

    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.

    The cake is a lie.
    The cake is a lie.
    The cake is a lie.

Re^2: Missing Module in CPAN
by LanX (Saint) on Mar 05, 2022 at 00:23 UTC
    > Maybe it's a class the user is supposed to create?

    This seems to be a reasonable assumption for something called "local config".

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery