This software can easily parse metadata files like META.yml for CPAN to extract relevant information.
Keep in mind that if you require something more powerful, you should move up to a full YAML parser such as YAML, YAML::Syck or YAML::LibYAML. However, if you're looking for a simple API, Parse::CPAN::Meta delivers exactly that. It features only two functions, which are based on the YAML functions of the same name. Identical calling semantics are used wherever possible.
Error reporting is done with exceptions (die'ing) and SYNOPSIS is available for easy implementation. To create a YAML file, simply use the LoadFile() function. From there, you can easily read properties with the appropriate syntax. For example, to retrieve the root property from the file:
my $root = $yaml[0]->{rootproperty};
To retrieve the 'one' and 'Foo' properties under the 'section' heading:
my $one = $yaml[0]->{section}->{one};
my $Foo = $yaml[0]->{section}->{Foo};
Overall, if you're in need of a lightweight, no-fuss YAML parser, Parse::CPAN::Meta could be a great fit for your needs.
Version 1.40: N/A