The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Math::Logic::Ternary::Calculator::Operator - ternary calculator arithmetic unit

VERSION

This documentation refers to version 0.003 of Math::Logic::Ternary::Calculator::Operator.

SYNOPSIS

  use Math::Logic::Ternary::Calculator::Operator;
  use Math::Logic::Ternary::Calculator::Mode;
  use Math::Logic::Ternary qw(nil true false word9);

  $mode = Math::Logic::Ternary::Calculator::Mode->balanced;
  $op = Math::Logic::Ternary::Calculator::Operator->find('Cmp', $mode);

  ($min_args, $var_args, $ret_vals) = $op->signature;
  @results = $op->execute(word9('1234'), word9('-5678'), nil);
  print scalar @results;                # prints 1
  print $results[0]->as_string;         # prints '$true'

DESCRIPTION

Exports

None.

SEE ALSO

Math::Logic::Ternary::Calculator

AUTHOR

Martin Becker <becker-cpan-mp@cozap.com>

COPYRIGHT AND LICENSE

Copyright (c) 2012-2017 by Martin Becker, Blaubeuren. All rights reserved.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.0 or, at your option, any later version of Perl 5 you may have available.