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. πŸ‘‘


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