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

Most often, a CPAN module has a license specified in the license: field of file META.yml. For the modules i currently use, i found: apache, perl_5, artistic_2, lgpl, perl, mit.

My question: is there a list of these values and what they mean? I could mostly guess the meaning, of course, but what is perl_5 vs. perl? And finally a list would be better than guessing.

Replies are listed 'Best First'.
Re: Is there a list of 'license:' values in META.yml and what they mean?
by choroba (Cardinal) on Oct 21, 2022 at 09:25 UTC
    Documented in CPAN::Meta::Spec.

    map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
      Thank you very much!
Re: Is there a list of 'license:' values in META.yml and what they mean?
by Haarg (Priest) on Oct 24, 2022 at 14:57 UTC

    META.yml files use the 1.x CPAN Meta spec. The list of licenses supported by this spec is available in CPAN::Meta::History::Meta_1_4.

    META.json files use the 2.0 CPAN Meta spec. The list of licenses supported by this spec is available in CPAN::Meta::Spec.