Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Missing Module in CPAN

by roho (Bishop)
on Mar 04, 2022 at 22:52 UTC ( [id://11141840]=perlquestion: print w/replies, xml ) Need Help??

roho has asked for the wisdom of the Perl Monks concerning the following question:

The module "Net::LocalCfg" is missing from CPAN. I did some research and found the following (I am using Strawberry Perl 5.24.1 on Windows 10):

1. Core module "C:\Strawberry\perl\lib\Net\Config.pm" requires module "Net::LocalCfg".
2. Module "Net::LocalCfg" does not exist in CPAN.

It appears to me that "Net::LocalCfg" needs to be reinstated in CPAN, or removed as a required module in "Net::Config". The docs for "Net::Config" say that "Net::Config" inherits from "Net::LocalCfg".

I sent an email to the current maintainer of "Net::Config" (Steve Shay) over a month ago, but have not heard anything in reply. Any other suggestions how to resolve the issue? Thanks.

"It's not how hard you work, it's how much you get done."

Replies are listed 'Best First'.
Re: Missing Module in CPAN
by choroba (Cardinal) on Mar 05, 2022 at 00:19 UTC
    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]

      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.

      > 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

Re: Missing Module in CPAN
by roho (Bishop) on Mar 05, 2022 at 05:38 UTC
    Thank you all for your input. The reason I asked this question was that perl2exe listed it as a missing module, which I initially thought was causing the executable created by perl2exe to fail. Further research revealed that this missing module had no affect on the executable created by perl2exe, and I located the source of the problem elsewhere. Once again, thanks for the input.

    "It's not how hard you work, it's how much you get done."

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://11141840]
Approved by LanX
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2024-04-23 17:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found