CPANPL...Author(3pm)
π CPANPLUS::Module::Author π
ok so bestie, welcome to the CPANPLUS::Module::Author page β that's the CPANPL...Author(3pm) one from your friendly neighborhood User Contributed Perl Documentation, and it's literally all about the CPAN author object for CPANPLUS. pull up a chair π«Ά
β¨ NAME β¨
CPANPLUS::Module::Author β the CPAN author object for CPANPLUS, no cap π
πΈ SYNOPSIS πΈ
my $author = CPANPLUS::Module::Author->new(
author => 'Jack Ashton',
cpanid => 'JACKASH',
_id => INTERNALS_OBJECT_ID,
);
$author->cpanid;
$author->author;
$author->email;
@dists = $author->distributions;
@mods = $author->modules;
@accessors = CPANPLUS::Module::Author->accessors;
π¦ DESCRIPTION π¦
So CPANPLUS::Module::Author builds objects out of the info sitting in the source files. once you've got one of those objects you can query it, like, all day π
β οΈ real talk: these objects should only be created internally. if you want a "fake" object, that's a whole other class β go say hi to CPANPLUS::Module::Author::Fake. π
π ACCESSORS π
an object of this class has the following accessors, and yes they're giving main character energy:
authorβ the name of the author. πcpanidβ the CPAN id of the author. πemailβ the email address of the author. heads up: it defaults to''if it wasn't provided. πparentβ theCPANPLUS::Internals::Objectthat spawned this module object. it's giving origin story ngl. β¨
π₯ METHODS π₯
$auth = CPANPLUS::Module::Author->new( author => AUTHOR_NAME, cpanid => CPAN_ID, _id => INTERNALS_ID [, email => AUTHOR_EMAIL] )
this one hands you back a CPANPLUS::Module::Author object, built from the parameters you passed in. iconic behavior honestly.
it returns false on failure. π
@mod_objs = $auth->modules()
returns a list of module objects that this author has released. slay. πΈ
@dists = $auth->distributions()
returns a list of module objects representing, like, all the distributions this author has released. the whole catalog bestie π
π CLASS METHODS π
accessors ()
returns a list of all the accessor methods on the object. that's it, that's the method β¨
that's the whole page, and you ate it fr fr π
cute little sign-off time: this was perl v5.40.1, dated 2025-03-01, straight from the User Contributed Perl Documentation, and it's the CPANPL...Author(3pm) page π bye bestie, go query some authors π¦
π¦ where this page comes from
- debian trixie: libcpanplus-perl 0.9916-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libcpanplus-perl 0.9916-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcpanplus-perl 0.9916-1 Β· 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