Minions::Util
package Example::Roles::Acme::Queue_v3; use Minions::Implementation roles => [qw/ Example::Roles::Role::Pushable Example::Roles::Role::LogSize /], requires => { attributes => [qw/items/] }; ; use Minions::Util 'call_sp'; sub pop { my ($self) = @_; call_sp($self => 'log_info'); shift @{ $self->{$__items} }; } 1;
Utility functions for use with Minions, exported on demand.
Provides a shorcut for calling semiprivate routines, so that
$self->{$__}->internal_func($self, @args);
can also be accomplished by
call_semiprivate($self, 'internal_func', @args);
Note that this function is only intended for use in an implementation or role.
call_sp is an alias for call_semiprivate
call_sp
call_semiprivate
To install Minions, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Minions
CPAN shell
perl -MCPAN -e shell install Minions
For more information on module installation, please visit the detailed CPAN module installation guide.