Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Devel::Events::HandlerUserlContributed PerlDevel::Events::Handler::Callback(3)

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

VERSION
       version 0.09

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".

SUPPORT
       Bugs 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>).

AUTHOR
       XXXX XXX'XX (Yuval Kogman) <nothingmuch@woobling.org>

COPYRIGHT AND LICENCE
       This 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.

perl v5.32.0			  2018-03-2Devel::Events::Handler::Callback(3)

NAME | VERSION | SYNOPSIS | DESCRIPTION | ATTRIBUTES | METHODS | SUPPORT | AUTHOR | COPYRIGHT AND LICENCE

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Devel::Events::Handler::Callback&sektion=3&manpath=FreeBSD+12.2-RELEASE+and+Ports>

home | help