Parse::CPAN::Meta(3p) Perl Programmers Reference Guide Parse::CPAN::Meta(3p)
Parse::CPAN::Meta(3p) Perl Programmers Reference Guide Parse::CPAN::Meta(3p) # Parse::CPAN::Meta(3p) Perl Programmers Reference Guide Parse::CPAN::Meta(3p) NNAAMMEE # Parse::CPAN::Meta - Parse META.yml and META.json CPAN metadata files VVEERRSSIIOONN # version 2.150010 SSYYNNOOPPSSIISS # ############################################# # In your file --- name: My-Distribution version: 1.23 resources: homepage: "http://example.com/dist/My-Distribution" ############################################# # In your program use Parse::CPAN::Meta; my $distmeta = Parse::CPAN::Meta->load_file('META.yml'); # Reading properties my $name = $distmeta->{name}; my $version = $distmeta->{version}; my $homepage = $distmeta->{resources}{homepage}; DDEESSCCRRIIPPTTIIOONN # PPaarrssee::::CCPPAANN::::MMeettaa is a parser for _M_E_T_A_. ...