CPAN::META::FEATURE(3perl)
π CPAN::Meta::Feature β¨
okay bestie, welcome to the Perl Programmers Reference Guide π β this is the page for CPAN::Meta::Feature, and yes it's literally a whole module whose entire job is describing optional features of a CPAN distribution. she's niche but she's iconic. π
β¨ VERSION β¨
version 2.150013 π¦
πΈ DESCRIPTION πΈ
so a CPAN::Meta::Feature object is basically the little ID card for an optional feature that a CPAN distribution offers, written down in that distribution's META.json file (or META.yml if you're feeling vintage π°οΈ).
fr fr, for the most part you're not gonna be constructing these yourself β this class mostly shows up when you're working with whatever the feature or features methods hand back on a CPAN::Meta object. so like, you get handed one, you poke at it, you vibe. π«Ά
π METHODS π
π§ new
my $feature = CPAN::Meta::Feature->new( $identifier => \%spec );
this hands you back a shiny new Feature object β¨ The %spec argument you pass in should be the exact same thing as the value of the "optional_feature" entry in the distmeta. and heads up β it must have entries for "description" and "prereqs". no description, no prereqs, no deal, bestie. π€
π¦ identifier
this method returns the feature's identifier. that's it, that's the whole method. short queen. π
π description
this method returns the feature's long description. the whole paragraph, the full essay, the extended cut. π
π prereqs
this method returns the feature's prerequisites, all wrapped up in a CPAN::Meta::Prereqs object. so cute, so tidy. π
π BUGS π
got a bug? got a feature request? please report it through the CPAN Request Tracker. bugs can be submitted via the web interface at:
<http://rt.cpan.org/Dist/Display.html?Queue=CPAN-Meta>
and when you do submit a bug or a request, pls pls pls include a test-file, or a patch to an existing test-file, that shows the bug or the desired feature. like, show us the receipt. π§Ύ the maintainers will love you for it, no cap.
π AUTHORS π
- David Golden
<dagolden@cpan.org> - Ricardo Signes
<cpan@semiotic.systems> - Adam Kennedy
<adamk@cpan.org>
the founding mothers... well, founders. legends only. π
β 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. free as in freedom, free as in slay ποΈβ¨
okay that's the whole page, you ate it, you understood it, periodt. π
this gem of a doc came to you from perl v5.44.0, dated 2026-10-17, and yeah the manual name is CPAN::...Feature(3perl) if you were wondering why the title's a little abridged. mwah, go forth and feature-flag responsibly π«Άπ
π¦ where this page comes from
- arch rolling: perl 5.44.0-1 Β· Artistic-1.0-Perl AND GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms