Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: META.yml the difference between `name` and `requires`

by Corion (Pope)
on Oct 06, 2013 at 10:29 UTC ( #1057139=note: print w/ replies, xml ) Need Help??


in reply to META.yml the difference between `name` and `requires`

I think the name is the name of the distribution, while the requires section lists modules (not distributions). This is just me guessing - CPAN::Meta::Spec likely has the gory details.

To get from a module to its distribution is in 02packages.details.txt, but there likely are CPAN modules that handle this mapping for you. I would look at CPAN::SQLite first, but most likely many of the other modules implement (or reuse) the similar logic.


Comment on Re: META.yml the difference between `name` and `requires`
Select or Download Code
Re^2: META.yml the difference between `name` and `requires`
by tobyink (Abbot) on Oct 06, 2013 at 19:46 UTC

    META-spec 1.4 is more relevant. CPAN::Meta::Spec is version 2 of the specification and is typically only used in META.json files rather than META.yml. CPAN::Meta::Spec has a more powerful prerequisite specification.

    (PS: can you please fix your </i>?)

    use Moops; class Cow :rw { has name => (default => 'Ermintrude') }; say Cow->new->name

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (9)
As of 2014-10-23 21:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (129 votes), past polls