NAME
Zoidberg::Fish::Monitor - simple event monitoring
SYNOPSIS
This module is a Zoidberg plugin, see Zoidberg::Fish for details.
ABSTRACT
Simple event monitoring in the Zoidberg shell.
DESCRIPTION
This plugin allows you monitor events in a simple way. You define a applet for a event by two blocks of code, the first returning a boolean, the second doing some obscure thingies. At the specified event if the first block returns 1 the second block is executed.
This module is a nice example on how to use events in Zoidberg.
EXPORT
None by default.
METHODS
list()
print applets in use
add_applet($name, $event_name, $condition, $action)
start using an extra applet
$name should be unique
$condition and $action are both perl code as string
delete_applet($applet_name)
never see applet $applet_name again
AUTHOR
R.L. Zwart, <carlos@caremail.nl> Jaap Karssenberg || Pardus [Larus] <j.g.karssenberg@student.utwente.nl>
Copyright (c) 2002 Raoul L. Zwart. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
SEE ALSO
http://zoidberg.sourceforge.net.