Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: LWP vs ExtUtils::Installed vs libwww::perl vs Module::Metadata

by haukex (Archbishop)
on Sep 24, 2018 at 14:14 UTC ( [id://1222913]=note: print w/replies, xml ) Need Help??


in reply to LWP vs ExtUtils::Installed vs libwww::perl vs Module::Metadata

I took a quick look at the source, this code is what is responsible for incorrectly turning auto/libwww/perl/.packlist into libwww/perl.pm. Personally I'd consider this a bug, or at least a "limitation" that occurrs when the location of the .packlist file(s) don't match the module names (but rather the distribution names). This appears to be true of the four modules named in this node, and if one were to analyze the other ~38k CPAN distros, I'm sure there's more out there.

Replies are listed 'Best First'.
Re^2: LWP vs ExtUtils::Installed vs libwww::perl vs Module::Metadata
by Anonymous Monk on Sep 24, 2018 at 20:05 UTC
    I was hoping someone with more perl wisdom would know where to look and what to look for. Thank you haukex! ExtUtils::Installed->modules() outputs module names (and apparently the occasional dist, oops) and Module::Metadata reads module names or files (but not dists). These core modules are very reliable and designed to work together. Anyway when ExtUtils::Installed->modules() sends a dist name to Module::Metadata->new_from_module() and the lookup fails, the solution is to send that dist name back to ExtUtils::Installed->files() to get a list of the module files, which Module::Metadata->new_from_file() understands. Thank you for helping me realize what's happening and fix a very old and annoying bug (in my code).

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-04-25 10:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found