| Devel-Events documentation | view source | Contained in the Devel-Events distribution. |
Devel::Events::Filter::Callback - Callback based Devel::Events::Filter
use Devel::Events::Filter::Callback;
Devel::Events::Filter::Callback->new(
callback => sub {
my ( @event ) = @_;
return if bad_event(@event); # drop it
return map { filter($_) } @event; # change it
},
handler => $handler,
);
Duh.
a code ref
Delegates to callback
| Devel-Events documentation | view source | Contained in the Devel-Events distribution. |