NAME

Logic::TruthTable::Convert81 - provide Base81 encoding to Logic::TruthTable

DESCRIPTION

This module provides Base81 encoding of the truth table's columns when saving the table in JSON format.

FUNCTIONS

terms_to_base81

Take the terms of a truth table's column and pack it into a Base81 string.

    $col = $tt->fncolumn("f1");
    $b81str = terms_to_base81($tt->width, $col->has_minterms,
            $col->has_minterms? $col->minterms: $col->maxterms,
            $col->dontcares);

terms_from_base81

Retrieve arrayrefs of the minterms, maxterms, and don't-cares of a truth table's column from a Base81 string.

    (@min_max_dc) = terms_from_base81($width, $b81str);

SEE ALSO

Convert::Base81

Logic::TruthTable::Util

AUTHOR

John M. Gamble <jgamble@cpan.org>