1CPAN::Meta::YAML(3)   User Contributed Perl Documentation  CPAN::Meta::YAML(3)
2
3
4

NAME

6       CPAN::Meta::YAML - Read and write a subset of YAML for CPAN Meta files
7

VERSION

9       version 0.003
10

SYNOPSIS

12           use CPAN::Meta::YAML;
13
14           # methods for files
15           $yaml = CPAN::Meta::YAML->read('META.yml');
16           $yaml->write('MYMETA.yml');
17
18           # methods for strings
19           $yaml_text = $yaml->write_string;
20           $yaml = CPAN::Meta::YAML->read_string($yaml_text);
21
22           # finding the metadata
23           my $meta = $yaml->[0];
24
25           # handling errors
26           $yaml->write($file)
27             or die CPAN::Meta::YAML->errstr;
28

DESCRIPTION

30       This module implements a subset of the YAML specification for use in
31       reading and writing CPAN metadata files like META.yml and MYMETA.yml.
32       It should not be used for any other general YAML parsing or generation
33       task.
34

SUPPORT

36       This module is currently derived from YAML::Tiny by Adam Kennedy.  If
37       there are bugs in how it parses a particular META.yml file, please file
38       a bug report in the YAML::Tiny bugtracker:
39       http://rt.cpan.org/NoAuth/ReportBug.html?Queue=YAML-Tiny
40       <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=YAML-Tiny>
41

SEE ALSO

43       YAML::Tiny, YAML, YAML::XS
44

AUTHORS

46       ·   Adam Kennedy <adamk@cpan.org>
47
48       ·   David Golden <dagolden@cpan.org>
49
51       This software is copyright (c) 2010 by Adam Kennedy.
52
53       This is free software; you can redistribute it and/or modify it under
54       the same terms as the Perl 5 programming language system itself.
55
56
57
58perl v5.12.2                      2011-01-02               CPAN::Meta::YAML(3)
Impressum