View on
MetaCPAN
search.cpan.org is shutting down
For details read Perl NOC. After June 25th this page will redirect to MetaCPAN.org
Karen Etheridge > Devel-Events > Devel::Events::Filter::Callback

Download:
Devel-Events-0.09.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

New  3
Open  1
View/Report Bugs
Module Version: 0.09   Source  

NAME ^

Devel::Events::Filter::Callback - Callback based Devel::Events::Filter

VERSION ^

version 0.09

SYNOPSIS ^

        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,
        );

DESCRIPTION ^

Duh.

ATTRIBUTES ^

handler

Devel::Events::Handler

callback

a code ref

METHODS ^

filter_event

Delegates to callback

SUPPORT ^

Bugs may be submitted through the RT bug tracker (or bug-Devel-Events@rt.cpan.org).

AUTHOR ^

יובל קוג'מן (Yuval Kogman) <nothingmuch@woobling.org>

COPYRIGHT AND LICENCE ^

This software is copyright (c) 2007 by יובל קוג'מן (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.

syntax highlighting: