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 πŸ’œ


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