Hi All,
I would like to know if there exists any way to evaluate arbitray boolean expressions containing true and false values in perl.
For example I have a perl sub that will generate the result of a single if statement as T (True) or F (False). I can then combine the results from multiple calls to the aforementioned sub to create a more complex boolean expression such as (T && F) || (F && F) etc. I then need to evaluate this new expression to T or F using algebra logic. Does anything exist in perl to do this?
Please note that I have used the operators &&=logical AND, ||=Logical OR in my explanation above but others may be more appropriate.
Many thanks for any feedback on this.
gauss76In reply to Evaluate arbitrary boolean expressions by gauss76
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |