|
NAMEDevel::Events::Filter - A handler role that filters events and delegates to anotherVERSIONversion 0.09SYNOPSISpackage MyFilter; use Moose; with qw/Devel::Events::Filter/; sub filter_event { my ( $self, @event ) = @_; return (map { ... } @event); } DESCRIPTIONThis role allows you to build event filters easily:USAGETo use this role you must provide the "filter_event" method.This role provides an optional "handler" attribute and a "new_event" method, and does the Devel::Events::Handler role implicitly. If a sub handler was provided then the filtered event will be delegated to it, but due to the usefulness of filters as debugging aids this is currently optional. In the future this design choice might change. ATTRIBUTES
METHODS
SEE ALSODevel::Events, Devel::Events::Handler, Devel::Events::Filter::Stamp, Devel::Events::Filter::WarnSUPPORTBugs may be submitted through the RT bug tracker <https://rt.cpan.org/Public/Dist/Display.html?Name=Devel-Events> (or bug-Devel-Events@rt.cpan.org <mailto:bug-Devel-Events@rt.cpan.org>).AUTHORXXXX XXX'XX (Yuval Kogman) <nothingmuch@woobling.org>COPYRIGHT AND LICENCEThis software is copyright (c) 2007 by XXXX XXX'XX (Yuval Kogman).This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Visit the GSP FreeBSD Man Page Interface. |