Rule::Engine::Rule - A Rule Engine Rule
The action that this rule will perform if it's condition is met. The action is invoked as a method and will receive two additional arguments: an instance of the Rule::Engine::Session in which it is running and the object that is was tested. So your first line (if you care about arguments) will need to be:
my ($self, $sess, $obj) = @_;
The condition which must be met for this rule's action to be fired. The condition is invoked as a method and will receive two additional arguments: an instance of the Rule::Engine::Session in which it is running and the object that is being tested. So your first line (if you care about arguments) will need to be:
Text describing this rule.
The name of this rule.
Executes this Rule's condition.
condition
Executes this Rule's action.
action
Cory G Watson, <gphat at cpan.org>
<gphat at cpan.org>
Copyright 2010 Cory G Watson.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install Rule::Engine, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Rule::Engine
CPAN shell
perl -MCPAN -e shell install Rule::Engine
For more information on module installation, please visit the detailed CPAN module installation guide.