Devel::Events::Handler - An optional base role for event handlers.
package MyGen; use Moose; with qw/Devel::Events::Handler/; sub new_event { my ( $self, $type, %data ) = @_; # ... }
This convenience role reminds you to add a new_event method.
new_event
Handle a fired event.
To install Devel::Events, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Devel::Events
CPAN shell
perl -MCPAN -e shell install Devel::Events
For more information on module installation, please visit the detailed CPAN module installation guide.