1CPAN::Meta::Feature(3)User Contributed Perl DocumentationCPAN::Meta::Feature(3)
2
3
4
6 CPAN::Meta::Feature - an optional feature provided by a CPAN
7 distribution
8
10 version 2.150010
11
13 A CPAN::Meta::Feature object describes an optional feature offered by a
14 CPAN distribution and specified in the distribution's META.json (or
15 META.yml) file.
16
17 For the most part, this class will only be used when operating on the
18 result of the "feature" or "features" methods on a CPAN::Meta object.
19
21 new
22 my $feature = CPAN::Meta::Feature->new( $identifier => \%spec );
23
24 This returns a new Feature object. The %spec argument to the
25 constructor should be the same as the value of the "optional_feature"
26 entry in the distmeta. It must contain entries for "description" and
27 "prereqs".
28
29 identifier
30 This method returns the feature's identifier.
31
32 description
33 This method returns the feature's long description.
34
35 prereqs
36 This method returns the feature's prerequisites as a
37 CPAN::Meta::Prereqs object.
38
40 Please report any bugs or feature using the CPAN Request Tracker. Bugs
41 can be submitted through the web interface at
42 <http://rt.cpan.org/Dist/Display.html?Queue=CPAN-Meta>
43
44 When submitting a bug or request, please include a test-file or a patch
45 to an existing test-file that illustrates the bug or desired feature.
46
48 · David Golden <dagolden@cpan.org>
49
50 · Ricardo Signes <rjbs@cpan.org>
51
52 · Adam Kennedy <adamk@cpan.org>
53
55 This software is copyright (c) 2010 by David Golden, Ricardo Signes,
56 Adam Kennedy and Contributors.
57
58 This is free software; you can redistribute it and/or modify it under
59 the same terms as the Perl 5 programming language system itself.
60
61
62
63perl v5.32.0 2020-07-28 CPAN::Meta::Feature(3)