Devel::Events::Filter::HandlerOptional - A role for filters that are useful even without a handler.
package MyFilter; use Moose; with qw/Devel::Events::Filter::HandlerOptional/; sub filter_event { # do something }
This is just like Devel::Events::Filter except it won't complain if handler is unset, but instead just drop events.
handler
Deve::Events::Filter::Warn
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.