CPAN::META::FEATURE(3pm)
πΈ CPAN::Meta::Feature πΈ
okay bestie so this is a page from the Perl Programmers Reference Guide β yes that one β and today's main character is CPAN::Meta::Feature π
β¨ VERSION β¨
version 2.150010 β that's the vibe check, and she passed π
π DESCRIPTION π
So like. A CPAN::Meta::Feature object is literally just a lil descriptor for an optional feature that a CPAN distribution offers π¦ β and that feature gets specified inside the distribution's META.json file (or META.yml, for the old-school girlies, no cap).
And like, for the most part? This class is lowkey shy π β she only really shows up when you're operating on the result of the "feature" or "features" methods on a CPAN::Meta object. That's her whole social circle. That's the group chat. iykyk.
π§ METHODS π§
π
new
my $feature = CPAN::Meta::Feature->new( $identifier => \%spec );
This returns a new Feature object β¨ (she's brand new, she's fresh, she's giving main character energy π).
The %spec argument you hand to the constructor should be the same as the value of the "optional_feature" entry in the distmeta β like, don't get creative with it, bestie. And it must contain entries for "description" and "prereqs". Those two are non-negotiable. Periodt. π₯
π¦ identifier
This method returns the feature's identifier. Simple. Iconic. She ate. π
πΈ description
This method returns the feature's long description β like the full paragraph version, not the lil bio. π
β prereqs
This method returns the feature's prerequisites as a CPAN::Meta::Prereqs object π― β so cute, so structured, so ready for your dependency-resolution era.
π BUGS π
Please report any bugs or feature requests using the CPAN Request Tracker, bestie π β bugs can be submitted through the web interface right here:
<http://rt.cpan.org/Dist/Display.html?Queue=CPAN-Meta>
And when you submit a bug or a request? Please include a test-file or a patch to an existing test-file that illustrates the bug or the desired feature π β genuinely, this is the difference between "slay, fixed" and "β¦what". help us help you π«Ά
π AUTHORS π
- David Golden
<dagolden@cpan.org> - Ricardo Signes
<rjbs@cpan.org> - Adam Kennedy
<adamk@cpan.org>
three absolute legends, fr fr π
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2010 by David Golden, Ricardo Signes, Adam Kennedy and Contributors.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself π β go forth, remix, redistribute, it's giving generous.
and that's the whole page, bestie β mwah π
okay so the footer vibes: this is perl v5.42.3, dated 2026-11-03, and the whole thing comes to you from CPAN::Meta::Feature(3pm). literally that's it, ily, bye πβ¨
π¦ where this page comes from
- alpine 3.24: perl-doc 5.42.3-r0 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms