You could of course look to cpan to see if there's anything that can help you.
If you want to parse the string yourself, take a look at RFC: Parsing with perl - Regexes and beyond and perhaps at Parse::RecDescent.
Evaluation should be pretty simple once you have a parse tree.
In reply to Re: Generate a truth table from input string
by moritz
in thread Generate a truth table from input string
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |