Acme-CPANModules-Roles
view release on metacpan or search on metacpan
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.
Role::Tiny. Basic role support plus method modifiers ("before", "after",
"around").
Moo::Role. Based on Role::Tiny, it adds attribute support. Suitable if
you use Moo as your object system.
Role::Basic. Despite having less features than Role::Tiny (no method
modifiers), Role::Basic starts a bit slower because it loads some more
modules.
Mouse::Role. Suitable only if you are already using Mouse as your object
system.
Moose::Role. Offers the most features (particularly the meta protocol),
but also the heaviest. Suitable only if you are already using Moose as
your object system.
ACME::CPANMODULES ENTRIES
Role::Tiny
Author: HAARG <https://metacpan.org/author/HAARG>
Moo::Role
Author: HAARG <https://metacpan.org/author/HAARG>
other Dist::Zilla- and/or Pod::Weaver plugins. Any additional steps
required beyond that are considered a bug and can be reported to me.
COPYRIGHT AND LICENSE
This software is copyright (c) 2023 by perlancar <perlancar@cpan.org>.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
BUGS
Please report any bugs or feature requests on the bugtracker website
<https://rt.cpan.org/Public/Dist/Display.html?Name=Acme-CPANModules-Role
s>
When submitting a bug or request, please include a test-file or a patch
to an existing test-file that illustrates the bug or desired feature.
lib/Acme/CPANModules/Roles.pm view on Meta::CPAN
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
lib/Acme/CPANModules/Roles.pm view on Meta::CPAN
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>
lib/Acme/CPANModules/Roles.pm view on Meta::CPAN
=head1 COPYRIGHT AND LICENSE
This software is copyright (c) 2023 by perlancar <perlancar@cpan.org>.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
=head1 BUGS
Please report any bugs or feature requests on the bugtracker website L<https://rt.cpan.org/Public/Dist/Display.html?Name=Acme-CPANModules-Roles>
When submitting a bug or request, please include a test-file or a
patch to an existing test-file that illustrates the bug or desired
feature.
=cut
( run in 0.342 second using v1.01-cache-2.11-cpan-4d50c553e7e )