If this decision table is used there must be on condition/action pair that gets executed, otherwise the decision fails. This is very helpfull where precise handling of all eventualies is expected. So you can be sure that you handle all constellations of conditions with an appropriate action. The contra point is that you may need extreme big tables when you have many conditions (n^n).
Returns a complete table of the condition status. The format is
$condition_id => action_result
where the action result is often true || false.
{ '1' => false, '0' => true, '2' => true };
Note that you just need to reverse the hash to know if one of the tests failed.
To install Decision::Table, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Decision::Table
CPAN shell
perl -MCPAN -e shell install Decision::Table
For more information on module installation, please visit the detailed CPAN module installation guide.