Acme-CPANModules-Roles
view release on metacpan or search on metacpan
lib/Acme/CPANModules/Roles.pm view on Meta::CPAN
package Acme::CPANModules::Roles;
use strict;
use Acme::CPANModulesUtil::Misc;
our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
our $DATE = '2023-10-31'; # DATE
our $DIST = 'Acme-CPANModules-Roles'; # DIST
our $VERSION = '0.002'; # VERSION
our $LIST = {
summary => "List of libraries for doing roles with Perl",
description => <<'_',
Roles are a way to write classes by composing them from simpler components,
instead of using inheritance from parent classes.
The Perl core does not provide a role mechanism for you, but there are several
role frameworks you can choose in Perl. This list orders them from the most
lightweight.
<pm:Role::Tiny>. Basic role support plus method modifiers (`before`, `after`,
`around`).
<pm:Moo::Role>. Based on Role::Tiny, it adds attribute support. Suitable if you
use <pm:Moo> as your object system.
<pm:Role::Basic>. Despite having less features than Role::Tiny (no method
modifiers), Role::Basic starts a bit slower because it loads some more modules.
<pm:Mouse::Role>. Suitable only if you are already using <pm:Mouse> as your
object system.
<pm:Moose::Role>. Offers the most features (particularly the meta protocol), but
also the heaviest. Suitable only if you are already using <pm:Moose> as your
object system.
_
};
Acme::CPANModulesUtil::Misc::populate_entries_from_module_links_in_description;
1;
# ABSTRACT: List of libraries for doing roles with Perl
__END__
=pod
=encoding UTF-8
=head1 NAME
Acme::CPANModules::Roles - List of libraries for doing roles with Perl
=head1 VERSION
This document describes version 0.002 of Acme::CPANModules::Roles (from Perl distribution Acme-CPANModules-Roles), released on 2023-10-31.
=head1 DESCRIPTION
Roles are a way to write classes by composing them from simpler components,
instead of using inheritance from parent classes.
The Perl core does not provide a role mechanism for you, but there are several
role frameworks you can choose in Perl. This list orders them from the most
lightweight.
L<Role::Tiny>. Basic role support plus method modifiers (C<before>, C<after>,
C<around>).
L<Moo::Role>. Based on Role::Tiny, it adds attribute support. Suitable if you
use L<Moo> as your object system.
L<Role::Basic>. Despite having less features than Role::Tiny (no method
modifiers), Role::Basic starts a bit slower because it loads some more modules.
L<Mouse::Role>. Suitable only if you are already using L<Mouse> as your
object system.
L<Moose::Role>. Offers the most features (particularly the meta protocol), but
also the heaviest. Suitable only if you are already using L<Moose> as your
object system.
=head1 ACME::CPANMODULES ENTRIES
=over
=item L<Role::Tiny>
Author: L<HAARG|https://metacpan.org/author/HAARG>
=item L<Moo::Role>
Author: L<HAARG|https://metacpan.org/author/HAARG>
=item L<Moo>
Author: L<HAARG|https://metacpan.org/author/HAARG>
=item L<Role::Basic>
Author: L<OVID|https://metacpan.org/author/OVID>
=item L<Mouse::Role>
Author: L<SKAJI|https://metacpan.org/author/SKAJI>
=item L<Mouse>
Author: L<SKAJI|https://metacpan.org/author/SKAJI>
=item L<Moose::Role>
Author: L<ETHER|https://metacpan.org/author/ETHER>
=item L<Moose>
Author: L<ETHER|https://metacpan.org/author/ETHER>
=back
=head1 FAQ
=head2 What is an Acme::CPANModules::* module?
An Acme::CPANModules::* module, like this module, contains just a list of module
names that share a common characteristics. It is a way to categorize modules and
document CPAN. See L<Acme::CPANModules> for more details.
=head2 What are ways to use this Acme::CPANModules module?
Aside from reading this Acme::CPANModules module's POD documentation, you can
install all the listed modules (entries) using L<cpanm-cpanmodules> script (from
L<App::cpanm::cpanmodules> distribution):
( run in 0.811 second using v1.01-cache-2.11-cpan-cdf2f3d4e48 )