Math::Logic::Ternary::Calculator::Operator - ternary calculator arithmetic unit
This documentation refers to version 0.003 of Math::Logic::Ternary::Calculator::Operator.
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'
None.
Martin Becker <becker-cpan-mp@cozap.com>
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.
To install Math::Logic::Ternary, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Math::Logic::Ternary
CPAN shell
perl -MCPAN -e shell install Math::Logic::Ternary
For more information on module installation, please visit the detailed CPAN module installation guide.