Server : Apache/2.4.43 (Win64) OpenSSL/1.1.1g PHP/7.4.6 System : Windows NT USER-PC 6.1 build 7601 (Windows 7 Professional Edition Service Pack 1) AMD64 User : User ( 0) PHP Version : 7.4.6 Disable Function : NONE Directory : C:/xampp/perl/vendor/lib/Role/Tiny/ |
package Role::Tiny::With; use strict; use warnings FATAL => 'all'; use Role::Tiny (); use Exporter 'import'; our @EXPORT = qw( with ); sub with { my $target = caller; Role::Tiny->apply_roles_to_package($target, @_) } 1; =head1 NAME Role::Tiny::With - Neat interface for consumers of Role::Tiny roles =head1 SYNOPSIS package Some::Class; use Role::Tiny::With; with 'Some::Role'; # The role is now mixed in =head1 DESCRIPTION C<Role::Tiny> is a minimalist role composition tool. C<Role::Tiny::With> provides a C<with> function to compose such roles. =head1 AUTHORS See L<Role::Tiny> for authors. =head1 COPYRIGHT AND LICENSE See L<Role::Tiny> for the copyright and license. =cut