Parse::CPAN::MetaParse META.yml and other similar CPAN metadata files | |
Download |
Parse::CPAN::Meta Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Steffen Muller
- Publisher web site:
- http://search.cpan.org/~smueller/
Parse::CPAN::Meta Tags
Parse::CPAN::Meta Description
Parse META.yml and other similar CPAN metadata files Parse::CPAN::Meta is a parser class for META.yml files, based on the parser half of YAML::Tiny.It supports a basic subset of the full YAML specification, enough to implement parsing of typical META.yml files, and other similarly simple YAML files.If you need something with more power, move up to a full YAML parser such as YAML, YAML::Syck or YAML::LibYAML.Parse::CPAN::Meta provides a very simply API of only two functions, based on the YAML functions of the same name. Wherever possible, identical calling semantics are used.All error reporting is done with exceptions (die'ing).SYNOPSIS ############################################# # In your file --- rootproperty: blah section: one: two three: four Foo: Bar empty: ~ ############################################# # In your program use Parse::CPAN::Meta; # Create a YAML file my @yaml = Parse::CPAN::Meta::LoadFile( 'Meta.yml' ); # Reading properties my $root = $yaml->{rootproperty}; my $one = $yaml->{section}->{one}; my $Foo = $yaml->{section}->{Foo}; Requirements: · Perl
Parse::CPAN::Meta Related Software