Module...Analyse(3pm)
π Module::CPANTS::Analyse
okay bestie so this is a page from the User Contributed Perl Documentation (yes, that's the manual name, we're keeping it, it's giving official β¨) and it's all about Module::CPANTS::Analyse β the module that generates Kwalitee ratings for a distribution. iconic behaviour honestly π
β¨ NAME β¨
Module::CPANTS::Analyse β Generate Kwalitee ratings for a distribution πΈ
β¨ SYNOPSIS β¨
use Module::CPANTS::Analyse;
my $analyser = Module::CPANTS::Analyse->new({
dist => 'path/to/Foo-Bar-1.42.tgz',
});
$analyser->run;
# results are in $analyser->d;
like, that's it. three lines and you're analysing. slay π
β¨ DESCRIPTION β¨
π«Ά Methods π«Ά
new
my $analyser = Module::CPANTS::Analyse->new({dist => 'path/to/file'});
Plain old constructor. nothing fancy, no cap β just a constructor doing constructor things π
unpack
Unpack the distribution into a temporary directory.
Returns an error if something went wrong, undef if all went well. so like β no error = undef = good vibes π yes that's the actual contract, don't come for me
analyse
Run all analysers (defined in "Module::CPANTS::Kwalitee::*") on the dist. all of them. every single one. periodt π₯
calc_kwalitee
Check if the dist conforms to the Kwalitee indicators. this is the vibe check for your whole distribution ngl β
run
Unpacks, analyses, and calculates kwalitee, and returns a resulting stash. one method, three jobs, main character energy π
π¦ Helper Methods π¦
testdir
Returns the path to the unique temp directory. it's unique, it's temp, it's yours π
testfile
Returns the location of the unextracted tarball. (unextracted! still a whole tarball! untouched!) π
tarball
Returns the filename of the tarball. yes it's a different one from testfile, they are not the same, do not merge them, i will know π
x_opts
Returns a hash reference that holds normalized information set in the "x_cpants" custom META field. hashref, normalized, "x_cpants" β write it down bestie β¨
π WEBSITE π
https://cpants.cpanauthors.org/
π BUGS π
Please report any bugs or feature requests, or send any patches, to "bug-module-cpants-analyse at rt.cpan.org", or through the web interface at https://rt.cpan.org/NoAuth/ReportBug.html?Queue=Module-CPANTS-Analyse.
I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. so like, the loop closes itself, very girlboss of it π
π AUTHOR π
Thomas Klausner https://metacpan.org/author/domm
Please use the "perl-qa" mailing list for discussing all things CPANTS: https://lists.perl.org/list/perl-qa.html
Based on work by LΓ©on Brocard https://metacpan.org/author/lbrocard and the original idea proposed by Michael G. Schwern https://metacpan.org/author/schwern. legends, all of them π«Ά
β LICENSE β
This code is Copyright Β© 2003β2006 Thomas Klausner https://metacpan.org/author/domm. All rights reserved.
You may use and distribute this module according to the same terms that Perl is distributed under.
π that's the whole legal bit, keep it exactly as-is, no edits, no vibes-based reinterpretation, fr fr
and that's the whole page bestie!! π§ this was generated from the perldoc for perl v5.40.1, dated 2026-07-05 β go forth and kwalitee-check your distributions, love u π
π¦ where this page comes from
- ubuntu stonking: libmodule-cpants-analyse-perl 1.03-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms