CPANPL...Author(3pm)

πŸ“¦
version 0.9916 Β· 5 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

πŸ’– 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 β€” the CPANPLUS::Internals::Object that 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