刘刊 > pantheon-0.58 > Hermes::Call

Download:
pantheon-0.58.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

Hermes::Call - callback interface to Hermes

SYNOPSIS ^

 use Hermes::Call;

 my $cb = Hermes::Call->new( '/callback/dir' );

 my $barbaz = $cb->run( foo => [ 1, qw( bar baz ) ] );
 my $notbarbaz = $cb->run( foo => [ 0, qw( bar baz ) ] );
 my $all = $cb->run( 'foo' );

CALLBACKS ^

Each callback must return a CODE that returns a HASH of ARRAY when invoked.

METHODS ^

select( %query )

Run callback ( index of %query ) by condition ( value of %query ). Returns results.

run( %query )

Alias to select().

syntax highlighting: