Parse::...butions(3)
π Parse::CPAN::Distributions π
okay bestie, so this page is Parse::...butions(3) from the User Contributed Perl Documentation section β and no, the title isn't being dramatic, it's just that Parse::CPAN::Distributions is so long the man page had to shorten it. iconic behavior honestly.
β¨ NAME β¨
Parse::CPAN::Distributions β it gives you an index for the current CPAN distributions. that's it, that's the whole vibe. π¦
πΈ SYNOPSIS πΈ
here's the group chat of what you can do:
my $oncpan = Parse::CPAN::Distributions->new(database => $db);
my $found = $oncpan->listed($distribution,$version);
my $any = $oncpan->listed($distribution);
my @dists = $oncpan->distributions_by($author);
my $author = $oncpan->author_of($distribution,$version);
my $version = $oncpan->latest_version($distribution);
my @versions = $oncpan->versions($distribution);
look at her go. she's serving. π
π DESCRIPTION π
so basically? this distribution lets you index the distributions that are currently listed on CPAN. and how does it do that, you ask? by parsing the index file find-ls. yes, the whole thing is a glow-up for one flat file. main character energy fr fr. π
π INTERFACE π
The Constructor
new
it parses find-ls, extracting the list of all the module distributions. no cap.
- takes one optional hash key/pair,
'file', which you can use to specify the path to an existing compressed or uncompressedfind-lsfile. - by default a copy will be downloaded and automatically loaded into memory. it just does that. effortless. β¨
ifnewreturnsundef, then$Parse::CPAN::Distributions::ERRORwill contain the error message that got recorded. so like, if it's not giving, check theERRORvar, bestie. π
Methods
listedβ give it a distribution and a version, and it returns1if it's on CPAN, otherwise0. and note: if you don't hand it a version, it just assumes you're looking for any version. flexible queen. π«Άdistributions_byβ give it an author ID, get back a sorted list of the versioned distributions currently available on CPAN. sorted, because we're organized. πauthor_ofβ give it a distribution and a version, and it returns the author ID if it's available on CPAN. otherwise you getundefback. it's giving mystery. πlatest_versionβ give it a distribution, get the latest known version on CPAN. give it a distribution and an author, and it returns the latest version for that author.
note that a return value of0implies unknown. so don't come for her,0is not a version, it's a shrug. π
versionsβ give it a distribution and it returns all the versions available on CPAN. give it a distribution and an author and it returns all the versions attributed to that author. yes the typo in the original says "dsitribution", we love her anyway. πparseβ parsesfind-ls, extracting the list of all the module distributions. the whole engine, the moment, the β¨.
π BUGS, PATCHES & FIXES π
there are no known bugs at the time of this release. slay.
however!! if you spot a bug, or you're experiencing difficulties that aren't explained within the POD documentation, please send bug reports and patches to the RT Queue (see below, bestie).
fixes are dependent upon their severity and my availability. so if a fix is not forthcoming, please feel free to (politely) remind me. politely β that part is load-bearing. π
RT:
http://rt.cpan.org/Public/Dist/Display.html?Name=Parse-CPAN-Distributions
π₯ SEE ALSO π₯
Parse-CPAN-AuthorsParse-CPAN-Packages
go read those too, they're the friend group. π¦
π AUTHOR π
Barbie, <barbie@cpan.org>
for Miss Barbell Productions <http://www.missbarbell.co.uk>.
π COPYRIGHT AND LICENSE π
Copyright (C) 2008-2014 Barbie for Miss Barbell Productions.
this distribution is free software; you can redistribute it and/or modify it under the Artistic License v2.
and that's the whole page, bestie!! no cap, you're now certified in Parse::CPAN::Distributions. this was perl v5.42.0, dated 2025-07-25, and it ate. periodt. ππβ¨π«Ά
π¦ where this page comes from
- fedora 43: perl-Parse-CPAN-Distributions 0.14-31.fc43 Β· Artistic-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms