GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  DEVEL::EVENTS::HANDLER::CALLBACK (3)

.ds Aq ’

NAME

Devel::Events::Handler::Callback - An event handler that delegates to code references.

CONTENTS

SYNOPSIS



        use Devel::Events::Handler::Callback;

        my $h = Devel::Events::Handler::Callback->new(
                callback => sub {
                        my ( $type, %data ) = @_;
                        # ...
                },
        );



DESCRIPTION

This object will let you easily create handlers that are callbacks. This is used extensively in the test suites.

ATTRIBUTES

callback Accepts a code reference.

Required.

METHODS

new This method is overridden so that when it is passed only one parameter that parameter will be used for the callback attribute.
new_event @event Delegates to callback.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 DEVEL::EVENTS::HANDLER::CALLBACK (3) 2009-01-10

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.