Menlo:...taCPAN(3pm)
π NAME π
Menlo::Index::MetaCPAN β bestie, it's literally a search index via MetaCPAN β¨
π¦ SYNOPSIS π¦
okay so this is the whole vibe, copy it exactly bestie:
use CPAN::Common::Index::MetaCPAN;
$index = CPAN::Common::Index::MetaCPAN->new({ include_dev => 1 });
$index->search_packages({ package => "Moose", version => "1.1" });
$index->search_packages({ package => "Moose", version_range => ">= 1.1, < 2" });
πΈ DESCRIPTION πΈ
So this module implements a CPAN::Common::Index that goes and searches for packages against the MetaCPAN API. No cap, that's the whole job π«Ά
This backend supports searching modules with a version range β as specified in CPAN::Meta::Spec β and it translates that range into a MetaCPAN search query. The way that it just... handles your ranges for you? Iconic π
There's also support for dev release search, and you get it by passing the "include_dev" parameter to the index object. So easy, fr fr β¨
The result may include an optional field called "download_uri", which suggests a specific mirror URL to download from. And get this β it can be "backpan.org" if the archive was deleted π, or "cpan.metacpan.org" if the release date is within 1 day (because some mirrors might not have synced it yet π).
okay bestie, real talk: there is no support for searching packages with a regular expression, and no support for searching authors. That's just how it is. Periodt π
<div align="center">π</div>
okay that's the whole page, mwah π this was perl v5.36.0 energy, dated 2022-12-13, and it's part of your User Contributed Perl Documentation β go slay, bestie ππ¦β
π¦ where this page comes from
- debian bookworm: libmenlo-perl 1.9019-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libmenlo-perl 1.9019-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libmenlo-perl 1.9019-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libmenlo-perl 1.9019-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libmenlo-perl 1.9019-2 Β· Artistic-1.0-Perl OR 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