my $hook = POE::Kernel::Hook->create($session,$event,$callback);

$hook->suspend();
$hook->resume();
$hook->cancel();

$session can either be a reference to a session or '*'.
$event can either be 'eventname' or '*'�.
$callback is a CODEREF

Cancel forever removes the event.
suspend and resume just hops over the hook in dispatching without the cost of 
removing/adding it to the structures.

Artur



Reply via email to