Class::AbstractLogic

Class::AbstractLogic is a Perl module to handle Logic Abstractions.
Download

Class::AbstractLogic Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Robert Sedlacek
  • Publisher web site:
  • http://search.cpan.org/~phaylon/

Class::AbstractLogic Tags


Class::AbstractLogic Description

Class::AbstractLogic is a Perl module to handle Logic Abstractions. Class::AbstractLogic is a Perl module to handle Logic Abstractions.SYNOPSIS # the logic class definition package My::Logic::Foo; use Class::AbstractLogic-base; # a logic action action 'add', needs , verify { a => sub { /^d+$/ }, b => sub { /^d+$/ } }, sub { $_{a} + $_{b} }; 1; ... # logic module manager creation use Class::AbstractLogic; my $calm = Class::AbstractLogic::Manager->new; # loading a logic class $calm->load_logic(Foo => 'My::Logic::Foo'); # requesting a result from a logic method my $result = $calm->logic('Foo')->add(a => 11, b => 12); # $result will be false if an exception was caught if ($result) { print 'result was ' . $result->value . "n"; } else { print 'exception raised: ' . $result->key . "n"; print 'error message: ' . $result->error . "n"; }Requirements:· Perl Requirements: · Perl


Class::AbstractLogic Related Software